-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deep Link Instructions for Same Device Presentation (#28)
This adds instructions on configuring the same device presentation on iOS apps.
- Loading branch information
1 parent
4181b29
commit 6067a78
Showing
2 changed files
with
34 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Same Device OpenID4VP | ||
|
||
If you already have the OpenID4VP working on your app, you need to configure a deep link to get the `openid4vp://` URL and start the flow. | ||
|
||
## Configuring the app Info | ||
|
||
1. Go to the Info tab | ||
2. Find the "URL Types" section and click on the add symbol (+) to create a new one | ||
3. Fill the "Identifier" field with anything that you want to help you identify this URL type (e.g., OID4VP) | ||
4. Fill the "URL Schemes" field with `openid4vp` | ||
|
||
## Handle the Deep Link | ||
|
||
Add the following to your `@main struct : App`. | ||
|
||
```swift | ||
@main | ||
struct MyApp: App { | ||
var body: some Scene { | ||
WindowGroup { | ||
ContentView() | ||
.onOpenURL { url in | ||
// OID4VP flow integration | ||
} | ||
} | ||
} | ||
} | ||
``` | ||
|
||
And now your app is ready to handle `openid4vp://` URLs! |