You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[flutter_appauth][flutter_appauth_platform_interface] added support for end session requests (MaikuB#216)
* progress on end session on iOS
* various fixes
* further updates to platform interface to handle end session requests
* bump AppAuth iOS dependency to 1.4.0
* update AuthorizationServiceConfiguration to have nullable props
* complete wiring up end session request on Android and iOS
* update plugin for prerelease
* add missing changelog entry on SDK dependencies being bumped
* update Dart SDK constraints
* update readmes and add mention to changelog
* fix null endSessionEndpoint crash on iOS
* bump platform interface
* fix merge issue
* bump plugin
* Skip https issuer check if allowInsecureConnections is true. (MaikuB#228)
* bump to 2.0.0-dev.3
* bump AppAuth Android dependency
* create external user agent per request, which also issue where cancelling an end session request once won't allow for subsequent sessions to work
* fix example app so that refreshing access token works again
* bump for release
* fix imports in example app
* fix spacing in changelog
* bump platform interface to 4.0.0 stable release
* bump plugin to 2.0.0 stable
Co-authored-by: Roman Fürst <r.fuerst@gmx.ch>
A Flutter plugin that provides a wrapper for native AppAuth SDKs (https://appauth.io) used authenticating and authorizing users. The repository consists of the following folders
3
3
4
-
- flutter_appauth: code for the plugin
5
-
- flutter_appauth_platform_interface: the code for common platform interface
4
+
-[flutter_appauth](https://github.com/MaikuB/flutter_appauth/tree/master/flutter_appauth): code for the plugin
5
+
-[flutter_appauth_platform_interface](https://github.com/MaikuB/flutter_appauth/tree/master/flutter_appauth_platform_interface): the code for common platform interface
Copy file name to clipboardexpand all lines: flutter_appauth/README.md
+22-3
Original file line number
Diff line number
Diff line change
@@ -54,15 +54,15 @@ final AuthorizationTokenResponse result = await appAuth.authorizeAndExchangeCode
54
54
);
55
55
```
56
56
57
-
If you already know the authorization and token endpoints, which may be because discovery isn't supported, then these could be explicitly specified
57
+
In the event that discovery isn't supported or that you already know the endpoints for your server, they could be explicitly specified in the event that the dis
58
58
59
59
```dart
60
60
final AuthorizationTokenResponse result = await appAuth.authorizeAndExchangeCode(
If your server has an [end session endpoint](https://openid.net/specs/openid-connect-rpinitiated-1_0.html), you can trigger an end session request that is typically used for logging out of the built-in browser with code similar to what's shown below
The above code passes an `AuthorizationServiceConfiguration` with all the endpoints defined but alternatives are to specify an `issuer` or `discoveryUrl` like you would with the other APIs in the plugin (e.g. `authorizeAndExchangeCode()`).
105
+
93
106
## Android setup
94
107
95
108
Go to the `build.gradle` file for your Android app to specify the custom scheme so that there should be a section in it that look similar to the following but replace `<your_custom_scheme>` with the desired value
@@ -145,3 +158,9 @@ Go to the `Info.plist` for your iOS app to specify the custom scheme so that the
145
158
</dict>
146
159
</array>
147
160
```
161
+
162
+
## FAQs
163
+
164
+
**When connecting to Azure B2C or Azure AD, the login request redirects properly on Android but not on iOS. What's going on?**
165
+
166
+
The AppAuth iOS SDK has some logic to validate the redirect URL to see if it should be responsible for processing the redirect. This appears to be failing under certain circumstances. Adding a trailing slash to the redirect URL specified in your code has been reported to fix the issue.
Copy file name to clipboardexpand all lines: flutter_appauth/pubspec.yaml
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
name: flutter_appauth
2
2
description: This plugin provides an abstraction around the Android and iOS AppAuth SDKs so it can be used to communicate with OAuth 2.0 and OpenID Connect providers
Copy file name to clipboardexpand all lines: flutter_appauth_platform_interface/CHANGELOG.md
+5
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,8 @@
1
+
## [4.0.0]
2
+
3
+
***Breaking change**`AuthorizationServiceConfiguration` constructor has changed to take named parameters
4
+
* Added `endSession()` method, `EndSessionRequest` and `EndSessionResponse` classes to support end session requests
5
+
1
6
## [3.1.0]
2
7
3
8
* Added the ability to specify the response mode for authorization requests. This can be done using the `responseMode` parameter when constructing either an `AuthorizationRequest` or `AuthorizationTokenRequest`. This was done as the AppAuth Android SDK throws an exception when this was done via `additionalParameters`
0 commit comments