Skip to main content

Use multiple login / registration web applications

Comments

1 comment

  • Official comment
    Pryv Support

    You can specify the "WebApp" to open upfront 
    When calling https://api.pryv.com/reference/#auth-request have a look at the authUrl ​ parameter, it allows to specify which app to use. 
    In order to do so, they must be declared in register's settings under "access / trustedAuthUrls"

    As an example: 

    curl -i -X POST -H 'Origin: https://sw.pryv.me' -H 'Content-Type: application/json' -d '{"requestingAppId":"test-app-id","requestedPermissions":[{"streamId":"diary","level": "read","defaultName": "Journal"}],"languageCode": "fr", "authUrl": "https://sw2.pryv.li/access/access.html"}' "https://access.pryv.li/access"

     

Please sign in to leave a comment.