question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] Switch user scope for cf-java-client

See original GitHub issue

Hey team,

Could you please let me know if it is feasible to build the CloudFoundryClient by an access token (we only see RefreshTokenGrantTokenProvider, PasswordGrantTokenProvider, OneTimePasscodeTokenProvider, ClientCredentialsGrantTokenProvider)? Should there be something like AccessTokenGrantTokenProvider?

Currently in our use case, users log in using OAuth2, if successful, we retrieve the access token in Spring’s Security Context and put that into Authorization header of request to query data from Cloud Controller Rest endpoints manually. Do you think it’s feasible to switch to use cf-java-client instead? If so, how?

To be honest, we really hope to be able to use the lib since current process is very tedious and error-prone as you have to communicate to rest endpoints and parse those responses manually.

Please share if you have any idea.

Thank you, Tom

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
smaldinicommented, Mar 15, 2017

I confirm its coming for 3.0.6/3.1.M1, its a major story for us and a unique alternative to thread local context passing in reactive world.

1reaction
nebhalecommented, Mar 15, 2017

While the Hystrix case itself doesn’t work for us, the general idea is what we’re pursuing. Coming in a future version of Reactor (3.1?) is the3 ability to attach “context” to a flow. That context will be transfer across thread boundaries and coordinated properly without user intervenation. @smaldini can elaborate more/point at discussions. I’d implement the TokenProvider by storing the SecurityContext In that flow context and retrieve when necessary.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change User Scope
A Super Admin can change the API scope for all Admin and Moderator profiles. Go to Manage Users and select the Admin Users...
Read more >
Scope change for end users - ServiceNow Community
Hence my question is can end users change their scope or it can be changed only for admins? Or admins has to change...
Read more >
Change User Scope - VoIP University
Intended Audience: All End Users This article shows the exact steps on how you can change the User's Scope (Permission) of a user....
Read more >
Creating Limited User Roles/Scopes for VSA Users on SaaS
Question I'd like to assign limited User Roles and Scopes to my VSA users. ... Once that's done, switch to the User Roles...
Read more >
Facebook Scope Change From user to user - Stack Overflow
The problem is when i login with my account i am able to get feeds but when i login from my friend account...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found