From 0fd0d9fc0b800466c3629f9e29695c8e831f7e5b Mon Sep 17 00:00:00 2001 From: Eli Zibin Date: Fri, 26 Jul 2024 14:11:04 -0700 Subject: [PATCH 1/4] update demo app auth0 acct set up redirect --- examples/demo/App.js | 9 +++--- examples/demo/android/app/build.gradle | 3 -- .../android/app/src/main/AndroidManifest.xml | 19 ++++++++++- examples/demo/components/Page.js | 11 ++++--- examples/demo/ios/Example/Info.plist | 32 ++++++++++++------- 5 files changed, 49 insertions(+), 25 deletions(-) diff --git a/examples/demo/App.js b/examples/demo/App.js index 9f6ab817..3ba5f365 100644 --- a/examples/demo/App.js +++ b/examples/demo/App.js @@ -31,12 +31,11 @@ const configs = { // } }, auth0: { - // From https://openidconnect.net/ - issuer: 'https://samples.auth0.com', - clientId: 'kbyuFDidLLm280LIwVFiazOqjO3ty8KH', - redirectUrl: 'https://openidconnect.net/callback', + issuer: 'https://rnaa-demo.eu.auth0.com', + clientId: 'VtXdAoGFcYzZ3IJaNy4UIS5RNHhdbKbU', + redirectUrl: 'rnaa-demo://oauthredirect', additionalParameters: {}, - scopes: ['openid', 'profile', 'email', 'phone', 'address'], + scopes: ['openid', 'profile', 'email', 'offline_access'], // serviceConfiguration: { // authorizationEndpoint: 'https://samples.auth0.com/authorize', diff --git a/examples/demo/android/app/build.gradle b/examples/demo/android/app/build.gradle index 9724deb8..a3d064cd 100644 --- a/examples/demo/android/app/build.gradle +++ b/examples/demo/android/app/build.gradle @@ -80,9 +80,6 @@ android { targetSdkVersion rootProject.ext.targetSdkVersion versionCode 1 versionName "1.0" - manifestPlaceholders = [ - appAuthRedirectScheme: 'io.identityserver.demo' - ] } signingConfigs { debug { diff --git a/examples/demo/android/app/src/main/AndroidManifest.xml b/examples/demo/android/app/src/main/AndroidManifest.xml index 4122f36a..ebe220b1 100644 --- a/examples/demo/android/app/src/main/AndroidManifest.xml +++ b/examples/demo/android/app/src/main/AndroidManifest.xml @@ -1,4 +1,4 @@ - + @@ -21,5 +21,22 @@ + + + + + + + + + + + + + + diff --git a/examples/demo/components/Page.js b/examples/demo/components/Page.js index ac730e35..dac8ba1f 100644 --- a/examples/demo/components/Page.js +++ b/examples/demo/components/Page.js @@ -1,11 +1,10 @@ import React from 'react'; -import { ImageBackground, StyleSheet, SafeAreaView } from 'react-native'; +import {ImageBackground, StyleSheet, SafeAreaView} from 'react-native'; -const Page = ({ children }) => ( +const Page = ({children}) => ( + style={[styles.background, {}]}> {children} ); @@ -17,10 +16,12 @@ const styles = StyleSheet.create({ paddingTop: 40, paddingHorizontal: 10, paddingBottom: 10, + width: '100%', + height: '100%', }, safe: { flex: 1, - } + }, }); export default Page; diff --git a/examples/demo/ios/Example/Info.plist b/examples/demo/ios/Example/Info.plist index 097f94ab..8e70d65b 100644 --- a/examples/demo/ios/Example/Info.plist +++ b/examples/demo/ios/Example/Info.plist @@ -20,6 +20,27 @@ $(MARKETING_VERSION) CFBundleSignature ???? + CFBundleURLTypes + + + CFBundleURLName + com.your.app.identifier + CFBundleURLSchemes + + io.identityserver.demo + + + + CFBundleTypeRole + Editor + CFBundleURLName + com.your.app.identifier + CFBundleURLSchemes + + rnaa-demo + + + CFBundleVersion $(CURRENT_PROJECT_VERSION) LSRequiresIPhoneOS @@ -51,16 +72,5 @@ UIViewControllerBasedStatusBarAppearance - CFBundleURLTypes - - - CFBundleURLName - com.your.app.identifier - CFBundleURLSchemes - - io.identityserver.demo - - - From 3aeab8846084697b2aae0bb57b19b419bcc87a30 Mon Sep 17 00:00:00 2001 From: Eli Zibin Date: Tue, 30 Jul 2024 13:27:06 -0700 Subject: [PATCH 2/4] add note --- examples/demo/android/app/src/main/AndroidManifest.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/demo/android/app/src/main/AndroidManifest.xml b/examples/demo/android/app/src/main/AndroidManifest.xml index ebe220b1..c479b775 100644 --- a/examples/demo/android/app/src/main/AndroidManifest.xml +++ b/examples/demo/android/app/src/main/AndroidManifest.xml @@ -21,6 +21,8 @@ + + Date: Tue, 30 Jul 2024 13:32:33 -0700 Subject: [PATCH 3/4] small docs fix --- docs/docs/introduction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/introduction.md b/docs/docs/introduction.md index f3ae78f6..0e17929d 100644 --- a/docs/docs/introduction.md +++ b/docs/docs/introduction.md @@ -218,7 +218,7 @@ Steps: // etc... ``` -2. `AppDelegate.swift` should implement the `RNAppAuthorizationFlowManager` protocol and have a handler for url deep linking. The result should look something like this: +2. `AppDelegate.swift` should implement the `RNAppAuthAuthorizationFlowManager` protocol and have a handler for url deep linking. The result should look something like this: ```swift @UIApplicationMain From fcc8cbc429a1c485feafcf65484f16cbb425301a Mon Sep 17 00:00:00 2001 From: Eli Zibin Date: Thu, 1 Aug 2024 12:51:26 -0700 Subject: [PATCH 4/4] Create polite-pants-swim.md --- .changeset/polite-pants-swim.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/polite-pants-swim.md diff --git a/.changeset/polite-pants-swim.md b/.changeset/polite-pants-swim.md new file mode 100644 index 00000000..3dfebe71 --- /dev/null +++ b/.changeset/polite-pants-swim.md @@ -0,0 +1,5 @@ +--- +'rnaa-demo': patch +--- + +demo app with new auth0