3

Adding an authorization.bxb file seems to make OAuth based account linking the first step in the app flow. As soon as the capsule starts there is a conversation driver (button) that links to the account linking page. Only once the user completes this flow can they access the rest of the capsule.

Immediate Account link view

How can you customize when the authorization flow begins. For example if your capsule contains some actions that require the user to be authorized and some initial actions that don't require your user to be authorized right away. ie: They can browse freely but if they want to save or purchase they need to link their account.

The docs for Bixby OAuth don't mention how you can customize where this flow gets invoked.

Marko Arezina
  • 67
  • 1
  • 7

1 Answers1

5

You can have actions that work with and without oauth. In your case, you can have 'freemium' flows that allow the user to interact, but other flows would require an OAuth token. You can control this when you define your endpoint. Add an authorization to the actions that require a user token.

action-endpoint (YourActionName) {
      accepted-inputs (actionInputs) 
      local-endpoint (action.js)

      authorization {
        user
      }
    }
Pete Haas
  • 1,800
  • 1
  • 12
  • 15