Forum Discussion

Peter_Baumann's avatar
Icon for Cirrostratus rankCirrostratus
Jun 22, 2021

oauth server generated jwt token problem

Hi all,

We have a customer try to do oauth with a dovecot server, they have the following problems using the f5 as a oauth server:


  1. The "typ" jwt header is missing, this should be set to "JWT".
  2. F5 set the JWT token nbf (not valid before) to some minutes in the past, this breaks dovecot auth.
  3. Customer want to use the following oauth features, are these supported?


Do you know how the above could be customized in f5 to set to values the dovecot would accept?


Thank you for any hint.


5 Replies

  • Marvin's avatar
    Icon for Cirrocumulus rankCirrocumulus

    use token_content_type with value jwt in post data while retrieving token via /f5-oauth2/v1/token

  • Unfortunately the customer changed the IdP now to Keycloak and this seems to fix all problems he had with the OAuth.

    The above is not the only one limitation F5 OAuth has, it would be great if F5 could be more customizable into this.

    I had a ticket open, also for the other customer problems, the only solution was a Feature Request without any timeline given when it would be implemented.

    • youssef1's avatar
      Icon for Cumulonimbus rankCumulonimbus

      Hello Peter,


      I have exactly the same problem as you for another application.

      The "typ" jwt header is missing, this should be set to "JWT".


      have you had any feedback from the support? if not, could you give me the number of your incident? it will have weight if I open an incident about it.


      thank you for your help.




      • Marvin's avatar
        Icon for Cirrocumulus rankCirrocumulus

        You need to specify token_content_type with value jwt for JWT tokens to be provided by F5 oauth server via POST method to /f5-oauth2/v1/token, if you dont do that then you request Opaque token.


        Also first is always a GET request to /f5-oauth2/v1/authorize where I also append &token_content_type=jwt