# Azure ADFS

* Go to Azure Active Directory

<figure><img src="https://1471712295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mi5veV04lYlkS769Dcp%2Fuploads%2Fgit-blob-750799d27f2fe84871a521ac058748228037d5e6%2FScreenshot%202023-03-29%20at%2016.53.20%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

* Press App registrations in the side bar
* Press `new registration`
* Fill in all the details to set up your application

<figure><img src="https://1471712295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mi5veV04lYlkS769Dcp%2Fuploads%2Fgit-blob-1b36dd36b856914f04eac531550c7cdb22ea7256%2FScreenshot%202023-03-29%20at%2016.47.29.png?alt=media" alt=""><figcaption></figcaption></figure>

* Press `register`
* You will now be in the app screen where you can immediately see the `application (client) ID` which you will need as the client id of the application

<figure><img src="https://1471712295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mi5veV04lYlkS769Dcp%2Fuploads%2Fgit-blob-071c0f01c9caaf91379fb96f221a020d3038974a%2FScreenshot%202023-03-29%20at%2016.47.51.png?alt=media" alt=""><figcaption></figcaption></figure>

* Now you can press the end points button on the top

<figure><img src="https://1471712295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mi5veV04lYlkS769Dcp%2Fuploads%2Fgit-blob-57763d66d659eb615492000d052372f4df840941%2FScreenshot%202023-03-29%20at%2016.49.13.png?alt=media" alt=""><figcaption></figcaption></figure>

* Here you can find the token endpoint and the authorization endpoint
* You can use the `OpenID Connect metadata document` endpoint to get the issued id and the user info endpoint
* Now you can press `certificates and secrets` here in the side bar

<figure><img src="https://1471712295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mi5veV04lYlkS769Dcp%2Fuploads%2Fgit-blob-e6189e29f2d77c5eeef22bab90048d6076fbb0cd%2FScreenshot%202023-03-29%20at%2016.48.05.png?alt=media" alt=""><figcaption></figcaption></figure>

* Click on client secrets and new client secret
* Add the description and an expiry date
* Now you will get a `value` which is the secret
