Cora azure instructions
coraserver
Requirements
- Azure Account
Getting clientID, clientSecret, tenant
-
Sign into https://portal.azure.com
-
Create a new application and set the
callbackURI
to match what you are gonna use in production -
Get the
clientID
from the overview page. -
Generate a client secret: In the application’s overview page, navigate to “Certificates & secrets” and click on “New client secret”. Enter a description, choose an expiration option, and click “Add”. Make a note of the generated client secret value. Please note that this will only appear once, if you refresh the page or login later this will be hidden.
-
If your organization allows you to access the Azure Active Directory then
tenant
will be your tenant ID but, if you are using a personal account you should settenant
to becommon
even though you will have a tenant ID.
config.json
The format of config.json
is as follows
{
"clientID": "YOUR_CLIENT_ID",
"clientSecret": "YOUR_SECRET_KEY",
"redirectURL": "http://localhost:8080/oauth/callback",
"scopes": [
"openid"
],
"tenant": "common"
}
Building and Running
git clone https://github.com/deebakkarthi/coraserver
go mod tidy
go build
./coraserver