Comments (8)
Strange. Help wanted if anyone else can try and reproduce the issue...
from spring-lemon.
Can you also help me implement the same social login via mobile apps. As the auth token returned by them is different and throws 401 when passing to get Context
from spring-lemon.
I've no idea on mobile apps and how they would be different. Could you please explain what's the exact issue and how Spring Lemon could support this you think?
from spring-lemon.
Hi, thanks for the reply.
Let me explain in detail:
When we hit this api: /oauth2/authorization/google (For login using Google via web browser)
we are expecting code from google auth on this endpoint : /login/oauth2/code/google. Right?
Then an auth token is generated and user is redirected to this end point with access token (which can be exchanged with an Access token using getContext API) : /social-login-success?token
But, in mobile devices we use Google sdk for login which returns auth code to our app, and not on our server end point which is (/login/oauth2/code/google). How can I use this code to generate access token for that particular code.
Any help will be appreciated as I am stuck with this from past 3 days. BTW thanks for the amazing library. +1
from spring-lemon.
Not sure how to support it. But why do you use the Google SDK? Why not the server endpoint, just like a webapp? Hope your app is cookie enabled.
from spring-lemon.
from spring-lemon.
Ok, thanks for posting the solution -- it might help others. However, I still have a question: you'll then need to code the social login in Android/iOS -- separately for each Google, Feacbook, GitHub ...? What's the exact problem in using the server redirects instead, just like web applications?
from spring-lemon.
Mobile devices use sdks for these social logins. Hence no server redirects. Thanks for the help.
from spring-lemon.
Related Issues (20)
- How to add more roles? HOT 4
- Custom redirect url stopped working HOT 8
- Adding parameters for login HOT 1
- no sample working HOT 3
- Allow projects to choose their ID generator HOT 6
- Configure Spring security to handle the new exceptionhandling
- How to use redirect cookie
- Reactive Auditing HOT 2
- Remove Thread.sleep in tests with CountdownLatch or CyclicBarrier
- Replace use or mongoTemplate..block in tests with a method having subscribe..countdownLatch
- Device Go offline after connecting initially HOT 6
- Need to extend SimpleUrlAuthenticationFailureHandler HOT 7
- Broken image link in Spring Lemon Exceptions guide HOT 3
- Non existent Maven repo in the Spring-Lemon documentation HOT 6
- lemon-demo-reactive test fails when run first time
- APK installed with permissions but appears offline in manager
- I want to use the spring-lemon-exceptions module in my project. How can I introduce it? HOT 1
- I want to use the spring lemon exceptions module in my project. How can I introduce it? HOT 1
- How to spring gateway? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-lemon.