Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to do authentication with Activation Token #5

Open
matthewdfleming opened this issue May 31, 2018 · 3 comments
Open

Add ability to do authentication with Activation Token #5

matthewdfleming opened this issue May 31, 2018 · 3 comments

Comments

@matthewdfleming
Copy link

matthewdfleming commented May 31, 2018

I could be missing it but I was going to use this api as a part of my 'activation' flow. The idea that I would post to /api/v1/authn with a {"token": "blahblah"} and get the user back plus password policy etc.

I'm not super familiar with this implementation of the api though so maybe I'm missing where I can do that

@bdemers
Copy link
Contributor

bdemers commented Jun 25, 2018

@matthewdfleming sorry we missed this.

You can get access to any property returned by using .getEmbedded().get("a-key")

Please reopen if you run into any issues!

@bdemers bdemers closed this as completed Jun 25, 2018
@matthewdfleming
Copy link
Author

Hmm.. not sure about your response, it doesn't seem to be related to the question.

What I need to be able to do is to login via this api with just an activation token (rather than a username/password combo). Currently there does not seem to be any java method that I can use to do that. Is there one that I missed?

@bdemers
Copy link
Contributor

bdemers commented Jun 25, 2018

Sorry, I misunderstood!

It isn't supported directly at the moment. You could probably do it by using:

AuthenticationRequest request = client.instantiate(AuthenticationRequest.class);
request.put("token", "blahblah"));
client.authenticate(request, ...);

Either way, I'll reopen to make sure we add a method signature for this.

@bdemers bdemers reopened this Jun 25, 2018
@bdemers bdemers added Triaged and removed Analysis labels Sep 10, 2018
@bdemers bdemers added Analysis and removed Triaged labels Feb 25, 2019
@arvindkrishnakumar-okta arvindkrishnakumar-okta changed the title Primary Authentication with Activation Token Add ability to do authentication with Activation Token Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants