-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ANCHOR-591] Add clients config to sep10 auth configuration #347
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,17 +40,56 @@ By default, the Anchor Platform allows anyone with a Stellar account to authenti | |
```bash | ||
# dev.env | ||
SEP10_CLIENT_ATTRIBUTION_REQUIRED=true | ||
SEP10_CLIENT_ATTRIBUTION_ALLOWLIST=lobstr.co,api.vibrantapp.com,decaf.so,api.beansapp.com | ||
``` | ||
|
||
</CodeExample> | ||
|
||
<CodeExample> | ||
|
||
SEP10_REQUIRE_KNOWN_OMNIBUS_ACCOUNT=true | ||
SEP10_OMNIBUS_ACCOUNT_LIST=GBIBMZNXMD3P7HXVQCYIWWT5NG43NEIIY7VYBQ5SADV6UULUKCAJTGPG | ||
```yaml | ||
clients: | ||
# Each item in the list may contain the following fields: | ||
# - name: (required) the name of the client | ||
# - type: (required) `custodial` or `noncustodial` | ||
# | ||
# If the type is `custodial`, | ||
# - signing_key: (required) the custodial SEP-10 signing key of the client. | ||
# - callback_url: (optional) the URL of the client's callback API endpoint. | ||
# - allow_any_destination: (optional) default to false. If set to true, allows any destination for deposits. | ||
# - destination_accounts: (optional) list of accounts allowed to be used for the deposit. If allows_any_destinations set to true, this configuration option is ignored. | ||
# | ||
# If the type is `noncustodial`, | ||
# - domain: (required) the domain of the client. | ||
# - callback_url: (optional) the URL of the client's callback API endpoint | ||
# - signing_key: (optional) the signing key of the client. | ||
|
||
# custodial client | ||
- name: custodial-client1 | ||
type: custodial | ||
signing_key: "the custodial SEP-10 signing key of the client1" | ||
callback_url: https://callback.custodial-client1.com/api/v1/anchor/callback | ||
allow_any_destination: false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you note that this 2 fields are ONLY for custodial |
||
destination_accounts: | ||
- name: custodial-client2 | ||
type: custodial | ||
signing_key: "the custodial SEP-10 signing key of the client2" | ||
|
||
# noncustodial client | ||
- name: noncustodial-client1 | ||
type: noncustodial | ||
domain: noncustodial-client1.co | ||
callback_url: https://callback.noncustodial-client1.co/api/v2/anchor/callback | ||
signing_key: "the signing key of the client1" | ||
- name: noncustodial-client2 | ||
type: noncustodial | ||
domain: noncustodial-client2.com | ||
``` | ||
|
||
</CodeExample> | ||
|
||
`SEP10_CLIENT_ATTRIBUTION_REQUIRED` informs the Anchor Platform whether or not it should allow users of non-custodial wallets to authenticate without the wallet also identifying itself, and `SEP10_CLIENT_ATTTRIBUTION_ALLOWLIST` is the list of non-custodial wallets that can create authenticated sessions with your services. | ||
`SEP10_CLIENT_ATTRIBUTION_REQUIRED` informs the Anchor Platform whether it should allow users of noncustodial wallets to authenticate without the wallet also identifying itself. | ||
|
||
`SEP10_REQUIRE_KNOWN_OMNIBUS_ACCOUNT` informs the Anchor Platform whether or not it should allow users of custodial wallets to authenticate without the custodial wallet's public key being included in the `SEP10_OMNIBUS_ACCOUNT_LIST`. | ||
`CLIENTS` is the list of outside wallet servers or clients for the Anchor server to safely communicate with. | ||
|
||
## Modify a Stellar Info File | ||
|
||
|
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you have 2 examples of custodial and non custodial separated a bit and add more comments to it (e.g. list fields that are required and optional for custodial/noncustodial)