-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] ExpiredAuthenticationToken when running the Extractor process at more than one hour #671
Comments
|
This tells me that you have an expired token. I don't think it's an issue with apiops. How many apis do you have just out of curiosity? Because we have users who use apiops with 1000s of apis in their environment. |
We have 456 API´s |
The extract process is during more than one hour, and the token is valid just during one hour. |
To expand an Azure AD token expiration, especially for use within an Azure DevOps pipeline, you will need to adjust the lifetime of the access tokens. However, it’s important to note that Azure AD access tokens have a default expiration of 1 hour and this cannot be extended for access tokens themselves. However, you can control the refresh token lifetime or use a long-lived token mechanism like Managed Identities or Service Principals that continuously obtain fresh tokens. Key Options:
|
Also please remember to close the issue if the suggested solution above resolves the error for you. |
I didn't find the commands New-AzureADPolicy and Add-AzureADApplicationPolicy at Powershell Here is the list of the commands
more infos
|
This is an issue outside the scope of apiops. Consult their docs please. |
I'll study about this item and back here to post the solution, ok? |
Please keep it open Abe report back here as it helps the wider community. |
Release version
6.0.1.1
Describe the bug
Hello,
I´m running the extractor from APIM with many objects (apis, version sets, policies fragments, ...) and the extraction is during more than one hour and because this is broken.
The message is like this: System.Net.Http.HttpRequestException: HTTP request to URI
====
Summary:
{"code":"ExpiredAuthenticationToken","message":"The access token expiry UTC time '9/20/2024 4:01:35 AM' is earlier than current UTC time '9/20/2024 4:01:35 AM'."}
The text was updated successfully, but these errors were encountered: