Access token not getting issued

Hillary Sebastian 0 Reputation points
2025-12-09T16:09:24.2933333+00:00

I made a web app using nextjs. It is hosted in an onprem server. we recently got our ssl certificate issued. before that all the user's were able to log in. but now some users are experiencing issues while trying to login. it says job title not found. I am not too sure why it happens. Any kind of help is appreciated

Azure Trusted Signing
Azure Trusted Signing
Trusted Signing is a Microsoft fully managed, end-to-end signing solution that simplifies the certificate signing process and helps partner developers more easily build and distribute applications.
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-12-09T16:09:34.0733333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    It sounds like the issue may be related to the configuration of your application or the way the authentication process is handling user data after the SSL certificate was issued. Here are a few steps you can take to troubleshoot the problem:

    1. Check User Attributes: Ensure that the job title attribute is correctly set for the users experiencing issues. If this attribute is required for authentication or authorization, missing values could lead to login failures.
    2. Inspect the JWT: Capture the JSON Web Token (JWT) from the authentication request and inspect its contents. You can use a tool like jwt.io to decode the token and verify that the necessary claims, including job title, are present and correctly formatted.
    3. Review Application Registration: Make sure that the application is properly registered in Azure and that all necessary permissions and scopes are granted. Check if the token acquisition request parameters are correctly configured.
    4. Network Configuration: Since the app is hosted on an on-prem server, ensure that there are no network issues or firewall rules that could be affecting the communication with the authentication service.
    5. Check SSL Configuration: Verify that the SSL certificate is correctly installed and configured on your server. Any misconfiguration could lead to issues in secure communication, affecting the authentication process.

    If the problem persists, consider checking the logs for any specific error messages that could provide more insight into the issue.


    References:


  2. Shubham Sharma 3,830 Reputation points Microsoft External Staff Moderator
    2025-12-09T16:12:44.63+00:00

    Hey Hillary! It sounds like you're having an issue with user logins after getting your SSL certificate issued for your Next.js web app. The error message you mentioned, "job title not found," could be related to authentication or access token issues.

    Here are a few things you can check:

    1. Token Validation: Ensure that the access tokens being issued are valid. You can validate the tokens using the steps outlined in the Validating Microsoft identity platform access tokens.
    2. Role Assignments: Make sure that the users trying to log in have the correct roles assigned. You might want to verify if the Trusted Signing Certificate Profile Signer role is assigned correctly. You can refer to the Assigning roles in Trusted Signing documentation for guidance.
    3. Errors Post-SSL Setup: After the SSL certificate setup, check if any changes in your app's authentication settings or token validation logic might be causing issues. You can refer to the Issues with getting access tokens documentation for more insights.
    4. Check ObjectId: If the service is responding with a 403 forbidden message or some users are unable to authenticate, confirm that the ObjectId being used to perform operations matches the one that has the assigned permission role.
    5. Connection Configuration: Sometimes, firewall or misconfigured settings might result in similar issues. Make sure that your settings are correctly configured to allow access.

    If these steps don't resolve the issue, here are some follow-up questions that could help in diagnosing the problem further:

    • Can you provide more details about the authentication method you're using in your web app (e.g., OAuth, OpenID Connect)?
    • Are all users experiencing the same issue, or is it happening to specific ones?
    • Have there been any changes to the codebase or configurations related to authentication since updating the SSL certificate?
    • What version of Next.js are you using, and are there any relevant error logs that show more details on the authentication failure?

    I hope this gives you a solid starting point, and feel free to reach out with more info if the issue persists!

    Note: This content was drafted with the help of an AI system. Please verify the information before relying on it for decision-making.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.