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][flutter_appauth] migrate to null…
… safety (MaikuB#187) * migrate platform interface to null safety * update cirrus script * migrate plugin to null safety * address warnings in example app * updated constraints for plugin_platform_interface dependency * make clientId and redirectUrl non-nullable * updated plugin_platform_interface version requirement * update flutter_appauth_platform_interface for stable release * switch cirrus script to build on stable * make ios build task upgrade from stable * bump version for stable release
- Loading branch information
Showing
21 changed files
with
130 additions
and
121 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
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
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
6 changes: 3 additions & 3 deletions
6
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
mixin AuthorizationParameters { | ||
/// Hint to the Authorization Server about the login identifier the End-User might use to log in. | ||
String loginHint; | ||
String? loginHint; | ||
|
||
/// List of ASCII string values that specifies whether the Authorization Server prompts the End-User for reauthentication and consent. | ||
List<String> promptValues; | ||
List<String>? promptValues; | ||
|
||
/// Whether to use an ephemeral session that prevents cookies and other browser data being shared with the user's normal browser session. | ||
/// | ||
/// This property is only applicable to iOS versions 13 and above. | ||
bool preferEphemeralSession; | ||
bool? preferEphemeralSession; | ||
} |
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_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,17 @@ | ||
/// Contains the response from making an authorization request. | ||
class AuthorizationResponse { | ||
AuthorizationResponse( | ||
const AuthorizationResponse( | ||
this.authorizationCode, | ||
this.codeVerifier, | ||
this.authorizationAdditionalParameters, | ||
); | ||
|
||
/// The authorization code. | ||
final String authorizationCode; | ||
final String? authorizationCode; | ||
|
||
/// The code verifier generated by AppAuth when issue the authorization request. Use this when exchanging the [authorizationCode] for a token. | ||
final String codeVerifier; | ||
final String? codeVerifier; | ||
|
||
/// Additional parameters included in the response. | ||
final Map<String, dynamic> authorizationAdditionalParameters; | ||
final Map<String, dynamic>? authorizationAdditionalParameters; | ||
} |
5 changes: 2 additions & 3 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
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
Oops, something went wrong.