CLASS

OAuthAuthorizationParameters

Contents

@objcMembers public final class OAuthAuthorizationParameters: NSObject

Parameters for an authorization request. It lists commonly used parameters, such as scope, and additional parameters can be added via the extraRequestParameters dictionary.

Properties

scopes

public let scopes: [String]

The selected scopes.

nonce

public let nonce: String?

A nonce that is used to associate a Client session with an ID Token, and to mitigate replay attacks.

acrValues

public let acrValues: [String]

The requested ACR values.

extraRequestParameters

public let extraRequestParameters: [String: String]

Additional authorization request parameters.

Methods

init(scopes:nonce:acrValues:extraRequestParameters:)

public init(scopes: [String] = [],
            nonce: String? = nil,
            acrValues: [String] = [],
            extraRequestParameters: [String: String] = [:])

Creates an OAuthAuthorizationParameters from a list of scopes and some extra request parameters.

Parameters

Name Description
scopes The selected scopes. Empty by default.
nonce A nonce that is used to associate a client session with an ID token, and to mitigate replay attacks. Not included by default.
acrValues The requested ACR values. Empty by default.
extraRequestParameters Additional authorization request parameters. Empty by default.