| 116 | } |
| 117 | |
| 118 | foreachpair ( |
| 119 | const string& key, |
| 120 | const JSON::Value& value, |
| 121 | jwt->payload.values) { |
| 122 | // Calling 'stringify' on a 'JSON::String' would result in a quoted |
| 123 | // string. Hence this case is treated differently. |
| 124 | if (value.is<JSON::String>()) { |
| 125 | principal.claims[key] = value.as<JSON::String>().value; |
| 126 | } else { |
| 127 | principal.claims[key] = stringify(value); |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | result.principal = principal; |
| 132 | return result; |
nothing calls this directly
no outgoing calls
no test coverage detected