-
Notifications
You must be signed in to change notification settings - Fork 2
Authentication
Deva Kumar edited this page May 23, 2020
·
7 revisions
restaf-server can be used in the following modes:
-
As a web server for static assets with no authentication
-
With authentication
- Implicit flow authentication
- Coming soon: authorization_code authentication
Your env file will look something like this:
APPLOC=./public
APPENTRY=index.html
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
Set the redirect as follows:
{APPHOST}:{APPPORT}/{APPNAME}/callback
Examples:
http://localhost:5000/viyaapp/callback
https://mymachibe:433/viyaapp/callback