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

Is there a possiblity to call the plugin via REST API? #5

Open
anton-brass opened this issue Mar 31, 2022 · 3 comments
Open

Is there a possiblity to call the plugin via REST API? #5

anton-brass opened this issue Mar 31, 2022 · 3 comments

Comments

@anton-brass
Copy link

We want to use your plugin for validating an app registration by e-mail code.

Therefore we want to create an in-app screen where we can type in the expected code.

This entered code we want to send to our backend.

The backend should be able to:

  • Receive the expected code
  • Update that the expected code was setup (e.g. by removing the registration-action)

Is there a way to ask for the expected code by the Keycloak-API? Or is there a way to send a Code via Rest-API so the plugin checks it by itself?

@dajay
Copy link
Contributor

dajay commented Apr 3, 2022

Hello @anton-brass , this extension hack the behavior of verify-email, bypass existing verify email token action and use form to validate code. The code, store in session of the current user, cannot be requested by a stateless rest-api.

@anton-brass
Copy link
Author

Thanks for the response dajay.

Is there also no way to access the generated validation code right? Since it must be persisted somehow, so the user can type it at a later point in time.

If it is possible to access it via REST we could try to remove the request action / change it to valid, if the sent code of the app is the one expected.

@artemrogov
Copy link

Guys, how can I make this code get a mobile application. Is it possible to use a rest api that could allow it to be entered?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants