cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Databricks Apps - X-Forwarded-Access-Token not available

jAAmes_bentley
Contributor

Hi all,

I've recently been getting started with Databricks Apps, and have been trying to use on-behalf-of access. However, it seems that the X-Forwarded-Access-Token is not coming through in my app headers. I have lots of other X-Forwarded ones such as Email, Host, User, etc, but not the Access-Token.

I have enabled the On-Behalf-Of User Auth preview in the previews settings of my account. On the app config page I have then tried to enable app resources and scopes as below:

jAAmes_bentley_0-1753219027973.png

I believe this might be where the issue is, when I click "save", the API scopes field remain empty no matter what scopes I try to give the user. The resource seems to stay, but the scope seems to be lost every time:

jAAmes_bentley_1-1753219116820.png

Am I missing something or doing something wrong? I have tried in another workspace with the same outcome.

Any feedback is welcome, thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions

jAAmes_bentley
Contributor

For anybody who comes across this post with the same issue, this issue is caused by enabling the on-behalf-of preview after deploying an App. 

The solution is to fully stop the App and then start it again after the preview has been enabled. Redeploying won't fix the issue, you have to do a full stop and start.

At the time of writing this is not part of the on-behalf-of documentation, but I have been told it will be added soon.

View solution in original post

1 REPLY 1

jAAmes_bentley
Contributor

For anybody who comes across this post with the same issue, this issue is caused by enabling the on-behalf-of preview after deploying an App. 

The solution is to fully stop the App and then start it again after the preview has been enabled. Redeploying won't fix the issue, you have to do a full stop and start.

At the time of writing this is not part of the on-behalf-of documentation, but I have been told it will be added soon.