Hi @Aleks S ,
Thanks for reaching out.
It sounds like you want to use Custom Authentication Extensions (CAE) to add custom claims to the token using a local REST API.
To get started, you'll need to create a custom claims provider with the token issuance start event type. This event is triggered right before the token is issued and allows you to call a REST API to add claims to the token**.** You can follow the steps in the documentation to create the custom claims provider, but instead of using an Azure Function, you'll use your local REST API.
Regarding your question about Entra External ID, it is a product that allows you to verify the identity of users using a third-party identity provider. While it is not directly related to Custom Authentication Extensions, you can certainly use both products together to provide a more comprehensive identity verification solution.
As for the error you're seeing when trying to create a custom extension token issuance event, it looks like the resource ID you're using is not in the correct format. The resource ID should be in the format of 'api://testxxxxxextension.azurewebsites.net/0ea0d427-xxx-4xxxf-8xxx-xxxxxxxxx'
.Make sure you're using the correct format for your resource ID.
Hope this will help.
Thanks,
Shweta
Please remember to "Accept Answer" if answer helped you.