Skip to content

Authentication

Deva Kumar edited this page May 23, 2020 · 7 revisions

Authentication

restaf-server can be used in the following modes:

  1. As a web server for static assets with no authentication

  2. With authentication

    • Implicit flow authentication
    • Coming soon: authorization_code authentication

No authentication

Your env file will look something like this:

APPLOC=./public
APPENTRY=index.html

Authorization_code flow

This is the recommended flow.

Create a clientid and clientsecret with authorization_code flow. Make sure that the redirect is set to

{APPHOST}:{APPPORT}/{APPNAME}

Examples

http://localhost:5000/viyaapp

https://mymachine:433/viyaapp

Implicit Flow

Set the redirect as follows:

{APPHOST}:{APPPORT}/{APPNAME}/callback

Examples:

http://localhost:5000/viyaapp/callback

https://mymachibe:433/viyaapp/callback

Clone this wiki locally