AppAuth
Classes | Typedefs
OIDAuthState.h File Reference

AppAuth iOS SDK. More...

#import <Foundation/Foundation.h>

Go to the source code of this file.

Classes

class  OIDAuthState
 A convenience class that retains the auth state between OIDAuthorizationResponses and OIDTokenResponses. More...
 

Typedefs

typedef void(^ OIDAuthStateAction) (NSString *_Nullable accessToken, NSString *_Nullable idToken, NSError *_Nullable error)
 Represents a block used to call an action with a fresh access token. More...
 
typedef void(^ OIDAuthStateAuthorizationCallback) (OIDAuthState *_Nullable authState, NSError *_Nullable error)
 The method called when the authStateByPresentingAuthorizationRequest:presentingViewController:callback: (OIDAuthState(IOS)) method has completed or failed. More...
 

Detailed Description

AppAuth iOS SDK.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Typedef Documentation

◆ OIDAuthStateAction

typedef void(^ OIDAuthStateAction) (NSString *_Nullable accessToken, NSString *_Nullable idToken, NSError *_Nullable error)

Represents a block used to call an action with a fresh access token.

Parameters
accessTokenA valid access token if available.
idTokenA valid ID token if available.
errorThe error if an error occurred.

◆ OIDAuthStateAuthorizationCallback

typedef void(^ OIDAuthStateAuthorizationCallback) (OIDAuthState *_Nullable authState, NSError *_Nullable error)

The method called when the authStateByPresentingAuthorizationRequest:presentingViewController:callback: (OIDAuthState(IOS)) method has completed or failed.

Parameters
authStateThe auth state, if the authorization request succeeded.
errorThe error if an error occurred.