CLASS

OAuthAuthorizationParameters

Contents

swift
@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

swift
public let scopes: [String]

The selected scopes.

nonce

swift
public let nonce: String?

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

acrValues

swift
public let acrValues: [String]

The requested ACR values.

extraRequestParameters

swift
public let extraRequestParameters: [String: String]

Additional authorization request parameters.

Methods

init(scopes:nonce:acrValues:extraRequestParameters:)

swift
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.