Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

login manually with spring security

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there

I have problem with login manually  with spring security
There is a login page with Qr code(I can put every want need to it)and  we have mobile have contain username.
when user scan the Qr code with  app ,user must be logged in .

I found this code for login:




but I don't know how to use it and how to logged in user automatically

I mean when user scan the qr code the page must be redirect to dashboard
I can create a web socket but I don't know how use it.
I need this .please help me.
sorry for my english

 
Ranch Hand
Posts: 146
1
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you pasted is a simple username-password authentication. Check out: https://www.baeldung.com/spring-security-two-factor-authentication-with-soft-token
 
meisam sabzi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I try with this but not wor
 
Bartender
Posts: 1282
39
IBM DB2 Netbeans IDE Spring Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Salil Wadnerkar wrote:What you pasted is a simple username-password authentication. Check out: https://www.baeldung.com/spring-security-two-factor-authentication-with-soft-token


Thanks for sharing it.
 
meisam sabzi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Claude Moore wrote:

Salil Wadnerkar wrote:What you pasted is a simple username-password authentication. Check out: https://www.baeldung.com/spring-security-two-factor-authentication-with-soft-token


Thanks for sharing it.


Is this worked for you?
 
Claude Moore
Bartender
Posts: 1282
39
IBM DB2 Netbeans IDE Spring Java
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

meisam sabzi wrote:

Claude Moore wrote:

Salil Wadnerkar wrote:What you pasted is a simple username-password authentication. Check out: https://www.baeldung.com/spring-security-two-factor-authentication-with-soft-token


Thanks for sharing it.


Is this worked for you?




Didn't try it, but it looks promising and very similar to your use case. My suggestion is to get a copy of that example, study how it works, and adapt it to your needs. Understanding a sample code is crucial, otherwise you'll end building brittle code. Take inspiration from code, not just copy it.
 
Watchya got in that poodle gun? Anything for me? Or this tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic