LoginRadius / developer-authentication-demos

Awesome authentication demos using LoginRadius
MIT License
6 stars 10 forks source link

Add Java Spring Boot #48

Closed romain325 closed 3 years ago

romain325 commented 3 years ago

48 Add Support for java spring boot

DRAFT: Experienced problem with already existing theme (rely on uppercased key and return lowercased)

Checklist

Description of change

Add Java Spring Boot demo for Login Radius

romain325 commented 3 years ago

Description of the issue described:

Quoting the code from profile.js:

utility.setInnerText('profile_email', response.data.Email[0].Value);

The key is uppercased, but the the identity given by getProfileByAccessToken in this file has lower cased key:

authApi.getProfileByAccessToken(accessToken, null, new AsyncHandler<>() {
     @Override
     public void onSuccess(Identity identity) {
         response[0] = new Response("success","Profile Fetched", identity);
     }
     [...]
}

Does anybody have an idea how to work with this ?

ashish8947 commented 3 years ago

@romain325 You can refer to our Documentation and Demo for more information

ashish8947 commented 3 years ago

@romain325 Please Add Configure demo and Running the Demo section in your Readme file with Step by Step Process and it is good if you can add "prerequisites" too. For example, you can check out this and please verify demo once on your local too.

ashish8947 commented 3 years ago

@romain325 Thanks for your contribution. I have tried to run your project but it is not in working condition. I can't see even an index page so please fix the same.

romain325 commented 3 years ago

@ashish8947 I'm not able to reproduce your problem can you please bring me more information ? There is no need of an index.html because we precise the path of the theme folder on the application.properties as a static resource location