stf icon indicating copy to clipboard operation
stf copied to clipboard

can i login without input

Open simplefff opened this issue 10 years ago • 7 comments

I want to use this with one fixed username and password ,and I don't want to login with input the name everytime when I open a new page ,can I do something to login in with my application for example setting cookie

simplefff avatar Jul 28 '16 11:07 simplefff

It should already set a cookie. Currently it isn't possible to disable the login entirely.

Probably duplicate of #37.

sorccu avatar Jul 28 '16 12:07 sorccu

@sorccu I have my own login page created, Now I need to bypass login and redirect the user to dashboard. Is it possible if I pass required credential in session?

tadesushilgithub avatar Jul 29 '16 17:07 tadesushilgithub

Basically you just need to sign a JWT using the STF session secret that includes the name and email address (=id) of the user, and then pass it to STF using a query parameter, like this and this. That user will then be logged into STF.

sorccu avatar Jul 29 '16 17:07 sorccu

excuse me, I have no username and password; where I can sign up.

larryzhuo avatar Nov 01 '16 10:11 larryzhuo

There is no registration. You are assumed to have your own authorizationsystem set up already, or use mock login.

On Tuesday, 1 November 2016, uniquezhuo [email protected] wrote:

excuse me, I have no username and password; where I can sign up.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/openstf/stf/issues/380#issuecomment-257537942, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB-_U7i6NoDCjMAyMFO9_Qm1LnwnwJoks5q5xmjgaJpZM4JXH_V .

sorccu avatar Nov 01 '16 10:11 sorccu

thank you. I just solved this problem

larryzhuo avatar Nov 01 '16 10:11 larryzhuo

how.?

Shinoby1992 avatar Nov 07 '16 01:11 Shinoby1992