1
Answered

Is it possible to login via link

Is it possible to login to helprace from our app using jwt link?

We have a web app with multiple domains and we would need to allow our users to log in to Helprace with their credentials for our app. Problem is that in Helprace settings there is room for only one login address. 

With our previous help system, we created a same kind of link that is used after successful SSO login, and redirected user to helpsystem using that link. That way our user only had to login to our system.

Is this kind of thing possible with Helprace?

3 replies

TP

It seems that I didn't read the instructions thoroughly enough. I now got it working just like you instructed with the browser redirection.

Thank you!

Great :) No problem!

TP

Hi,

That seems to require a redirect to our app for the login. As I mentioned in the question, we have customers with multiple domains and they all have their own login address.

I tried to create the login link

https://auth.helprace.com/jwt/${subdomain}?jwt=${token}

make a request to that url serverside and after it returned, redirect to https://subdomain.helprace.com/ but it did not work (asked for username and password).

In admin panel I can seen a successful login at SSO log.

In the SSO article, you can see that we recommend the redirect to be done in the way below (in the browser):

"Redirection

Your SSO script redirects users to your Helprace portal with JWT payload and return_to URL, which is normally the page within your website/application that users were on before they have been redirected to Helprace. Helprace will redirect users to the return_to URL after successful authentication.

This can be enabled by adding return_to GET parameter to the URL with the JWT payload:

https://auth.helprace.com/jwt/acme?jwt={payload}&return_to=https://acme.com/page-to-show-after-login

Where "https://acme.com/page-to-show-after-login" is the URL you would like to return the user to."

Secondly, can you specify how exactly you're performing the redirect. Why are not using the method above?

Hi there Teemu,

Yes, you can use the Helprace SSO. Here is more info: Setting up Single Sign-On (SSO)