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
* enable the publication of artifacts which include the build number in the version.
* bump version
* add lambda to authenticator
* add util methods
* add lambda to DialogAuthenticator
* cherry pick to v.next (#103)
* use launchCustomTabs in OAuthUserSignInActivity
* fix issue with pressing cancel button
* Merge pull request #104 from Esri/sorenoid/update-auth-readme
use updated name of the auth dependency in README
* reinstate onWindowFocusChanged in OAuthUserSignInActivity
* use didLaunch logic in OAuthAuthenticator for lambda scenario as well
* rm context receivers
* remove ontopresumedactivitychanged
* Trigger onFacilityChanged along with the levelChanged when selectedLevelId is programmatically updated (#111)
* reorganize OAuthAuthenticator
* update readme
* Don't suggest singleInstance
* add doc to method
* eof newline
* move composable to activity scope
* mv viewmodel definition to class level
* mv Authenticator definition to setContent block
* pass vm as argument to auth app
* fix readme numbering
* add note about redirect uri
* update doc for new param
* simplify side effect
* Address pr comments
* rename Extensions file
* rework OAuthAuthenticator to move launcher
* update readme
* Deletes WebView's session if `preferPrivateWebBrowserSession` is enabled (#119)
* added geo composable map
* Update gradle
* Delete SceneComposable.kt
* Revert "Delete SceneComposable.kt"
This reverts commit 5f9b41e.
* upgrades to match the API's gradle versions so we can easily include the API as a composite build. Also clears some false warnings in gradle files
* renamed to module geo-compose
* fixes for displaying FloorFilter facilitySelector when Sites are not present in the map (#153)
* Create t9nmanifest.txt (#167)
* removed module and microapp (#208)
* Update gradle.properties (#211)
* Update build.gradle.kts (#212)
* updates client id and redirect Uri (#216)
* Take out build numbers for publishing (#219)
* update dependency section of readme for 200.3.0 (#220)
---------
Co-authored-by: Soren Roth <sor10874@esri.com>
Co-authored-by: Soren Roth <sroth@esri.com>
Co-authored-by: Hudson Miears <hud10837@esri.com>
Co-authored-by: hud10837 <hmiears@esri.com>
Co-authored-by: Erick Lopez Solis <erick_solis@esri.com>
Co-authored-by: Shubham Sharma <shubhamsharma@esri.com>
Co-authored-by: Rama Chintapalli <rchintapalli@esri.com>
Co-authored-by: Gunther Heppner <gheppner@esri.com>
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,9 +25,10 @@ The *ArcGIS Maps SDK for Kotlin Toolkit* has a *Minimum SDK* version of *26*, me
25
25
The *ArcGIS Maps SDK for Kotlin Toolkit* is released with a "bill of materials" (`BOM`). The releasable BOM is versioned and represents a set of versions of the toolkit components which are compatible with one another. You may specify dependencies as follows
Copy file name to clipboardExpand all lines: microapps/AuthenticationApp/app/src/main/java/com/arcgismaps/toolkit/authenticationapp/AuthenticationAppViewModel.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -43,8 +43,8 @@ class AuthenticationAppViewModel(application: Application) : AndroidViewModel(ap
43
43
arcGISUrl,
44
44
// This client ID is for demo purposes only. For use of the Authenticator in your own app,
45
45
// create your own client ID. For more info see: https://developers.arcgis.com/documentation/mapping-apis-and-services/security/tutorials/register-your-application/
Copy file name to clipboardExpand all lines: toolkit/authentication/README.md
+25-24Lines changed: 25 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,13 +84,13 @@ class MyAppViewModel(application: Application) : AndroidViewModel(application),
84
84
}
85
85
```
86
86
87
-
### Intercepting OAuth Sign-in Redirects
87
+
### Intercepting OAuth Sign-in
88
88
89
89
The `Authenticator` launches a Custom Tab when an OAuth challenge is issued. When the Custom Tab completes with a redirect url, it is received by the `OAuthUserSignInActivity` that is declared in your app's manifest via its intent filter.
90
90
91
-
If you want to intercept this redirect before allowing the sign-in to complete, you can do that with the following steps:
91
+
If you want to launch a Custom Tab from your own app's activity, these steps will allow you to do that:
92
92
93
-
1. Remove the `intent-filter` from the `OAuthUserSignInActivity` in your app's manifest and put it on the activity that you wish to receive the redirect intent:
93
+
1. Remove the `OAuthUserSignInActivity` in your app's manifest and put its intent filter on the activity that you wish to receive the redirect intent:
94
94
95
95
```xml
96
96
<activity
@@ -114,35 +114,36 @@ If you want to intercept this redirect before allowing the sign-in to complete,
3. Handle the redirect in your app activity's `onNewIntent` and `onResume` overrides:
128
+
129
+
Note: You can check if the `intent` was caused by an OAuth redirect because the `intent.data.toString()` will start with your OAuth configuration's redirect URI.
127
130
128
131
```kotlin
129
-
overridefunonCreate(savedInstanceState:Bundle?) {
130
-
super.onCreate(savedInstanceState)
131
-
// Handle OAuth redirect intents by checking the intent.data
132
-
intent?.data?.let { uri ->
133
-
val uriString = uri.toString()
134
-
if (uriString.startsWith("my-ags-app")) {
135
-
// Do whatever business logic your app requires
136
-
val newIntent =Intent(this, OAuthUserSignInActivity::class.java).apply {
137
-
data = uri
138
-
}
139
-
startActivity(newIntent)
140
-
}
141
-
}
132
+
overridefunonNewIntent(intent:Intent?) {
133
+
super.onNewIntent(intent)
134
+
// This gets called first when OAuth redirects back to the app with a successful or cancelled
0 commit comments