forked from MaikuB/flutter_appauth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flutter_appauth_platform_interface] cleanup API docs and format code (…
…MaikuB#117) * update API docs * migrate example app 's XCode project * update changelog * format constructors * Revert "migrate example app 's XCode project" This reverts commit 508eb65. * fix grammar in changelog * add more API docs around properties related to additional parameters * update wording for platform-specific properties
- Loading branch information
Showing
11 changed files
with
94 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
flutter_appauth_platform_interface/lib/src/authorization_parameters.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 8 additions & 5 deletions
13
flutter_appauth_platform_interface/lib/src/authorization_response.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
class AuthorizationResponse { | ||
AuthorizationResponse(this.authorizationCode, this.codeVerifier, | ||
this.authorizationAdditionalParameters); | ||
AuthorizationResponse( | ||
this.authorizationCode, | ||
this.codeVerifier, | ||
this.authorizationAdditionalParameters, | ||
); | ||
|
||
/// The authorization code | ||
/// The authorization code. | ||
final String authorizationCode; | ||
|
||
/// The code verifier generated by AppAuth when issue the authorization request. Use this when exchanging the [authorizationCode] for a token | ||
/// The code verifier generated by AppAuth when issue the authorization request. Use this when exchanging the [authorizationCode] for a token. | ||
final String codeVerifier; | ||
|
||
/// Additional parameters included in the response | ||
/// Additional parameters included in the response. | ||
final Map<String, dynamic> authorizationAdditionalParameters; | ||
} |
5 changes: 3 additions & 2 deletions
5
flutter_appauth_platform_interface/lib/src/authorization_service_configuration.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 10 additions & 9 deletions
19
flutter_appauth_platform_interface/lib/src/authorization_token_response.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
import 'token_response.dart'; | ||
|
||
/// The details from making a successful combined authorization and token exchange request | ||
/// The details from making a successful combined authorization and token exchange request. | ||
class AuthorizationTokenResponse extends TokenResponse { | ||
AuthorizationTokenResponse( | ||
String accessToken, | ||
String refreshToken, | ||
DateTime accessTokenExpirationDateTime, | ||
String idToken, | ||
String tokenType, | ||
this.authorizationAdditionalParameters, | ||
Map<String, dynamic> tokenAdditionalParameters) | ||
: super(accessToken, refreshToken, accessTokenExpirationDateTime, idToken, | ||
String accessToken, | ||
String refreshToken, | ||
DateTime accessTokenExpirationDateTime, | ||
String idToken, | ||
String tokenType, | ||
this.authorizationAdditionalParameters, | ||
Map<String, dynamic> tokenAdditionalParameters, | ||
) : super(accessToken, refreshToken, accessTokenExpirationDateTime, idToken, | ||
tokenType, tokenAdditionalParameters); | ||
|
||
/// Contains additional parameters returned by the authorization server from making the authorization request. | ||
final Map<String, dynamic> authorizationAdditionalParameters; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 17 additions & 6 deletions
23
flutter_appauth_platform_interface/lib/src/token_response.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,33 @@ | ||
/// Details from making a successful token exchange | ||
class TokenResponse { | ||
TokenResponse( | ||
this.accessToken, | ||
this.refreshToken, | ||
this.accessTokenExpirationDateTime, | ||
this.idToken, | ||
this.tokenType, | ||
this.tokenAdditionalParameters); | ||
this.accessToken, | ||
this.refreshToken, | ||
this.accessTokenExpirationDateTime, | ||
this.idToken, | ||
this.tokenType, | ||
this.tokenAdditionalParameters, | ||
); | ||
|
||
/// The access token returned by the authorization server. | ||
final String accessToken; | ||
|
||
/// The refresh token returned by the authorization server. | ||
final String refreshToken; | ||
|
||
/// Indicates when [accessToken] will expire. | ||
/// | ||
/// To ensure applications have continue to use valid access tokens, they | ||
/// will generally use the refresh token to get a new access token | ||
/// before it expires. | ||
final DateTime accessTokenExpirationDateTime; | ||
|
||
/// The id token returned by the authorization server. | ||
final String idToken; | ||
|
||
/// The type of token returned by the authorization server. | ||
final String tokenType; | ||
|
||
/// Contains additional parameters returned by the authorization server from making the token request. | ||
final Map<String, dynamic> tokenAdditionalParameters; | ||
} |