Hello,
I was wondering if there was any way to forward the Google Id Token to the backend when using a Google Oauth2.0 Server.
Right now, the fortiweb puts in "authorization" header "Bearer + Google AccessToken"
But I would like this header to contain "Bearer + Google IdToken"
The difference for me is that Google IdToken is a Jwt that can be decoded and verified easily in my backend and so can be used as is to authenticate everything in my backend.
On the other hand the AccessToken is opaque and only give me access to GoogleApis. So this means I would need to mint my own Jwt with the infos I get from /userinfos google endpoint.
Thanks in advance,
Jules
Hello,
Thank you for using the Community Forum. I will seek to get you an answer or help. We will reply to this thread with an update as soon as possible.
Thanks,
up
Hello,
We are still looking for an answer to your question.
We will come back to you ASAP.
Thanks,
Hello Pdev,
I found this solution. Can you tell us if it helps, please?
To forward the Google ID token instead of the access token in the "Authorization" header when using a Google OAuth 2.0 server with FortiWeb, you would need to customize the handling of tokens. However, FortiWeb's default behavior is to use the access token for authorization purposes. Here are the general steps you might consider:
If these options are not feasible within FortiWeb's current capabilities, you may need to implement additional infrastructure to handle token management outside of FortiWeb.
User | Count |
---|---|
2567 | |
1358 | |
796 | |
650 | |
455 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.