var scope: String {
get {
// Create a string to concatenate all scopes existing in the _scopes array.
var scopeString = ""
for scope in self.scopes {
scopeString += scope.urlEncode()
// If the current scope is other than the last one, then add the "+" sign to the string to separate the scopes.
if (scope != self.scopes.last) {
scopeString += "+"
}
}
return scopeString
}
}
should be urlEncoded space instead:
list (required) Example: openid profile email
A space-delimited list of scope values for authorization. If you want to use OpenID Connect, you must pass openid as one of the scope values.
should be urlEncoded space instead:
http://docs.telenordigital.com/apis/connect/id/authentication.html#authorization-server-user-authorization
http://openid.net/specs/openid-connect-core-1_0.html#ScopeClaims
A test should also be added to verify the correct behavior