Top level authorization key that defines the OAuth 2.0 access scope a user can give a provider. This key must be in an authorization.bxb
file, which must be in the root level directory of your capsule (the same level as the required capsule.bxb
file).
authorization {
user {
oauth2-authorization-code (providerId) {
authorize-endpoint (...)
client-id (...)
client-secret-key (...)
scope (...) // optional
token-endpoint (...)
}
}
global {
oauth2-client-credentials (providerId) {
client-id (...)
client-secret-key (...)
scope (...) // optional
token-endpoint (...)
}
}
}
The client-secret-key
is a name entered in the Configuration & Secrets screen of the Bixby Developer Center for the capsule:
To get the secret with the name sec1
, your authorization
block would contain client-secret-key (sec1)
.
authorization {
user {
oauth2-authorization-code ("Mock Bank") {
authorize-endpoint ("https://bank.bixby.pro/dialog/authorize")
client-id ("xyz123")
client-secret-key ("ssh-password")
scope ("transfer_money")
token-endpoint ("https://bank.bixby.pro/oauth/token")
}
}
}
Copyright 2024 Samsung All rights reserved