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 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 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..c479b775 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,24 @@ + + + + + + + + + + + + + + + + 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 - - -