Coder Social home page Coder Social logo

kratos-client-java's People

Contributors

aeneasr avatar kevgo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kratos-client-java's Issues

Can we get other java clients generated?

@aeneasr
The current generated Java client library seems geared towards Java 7 with a lot of outdated/unnecessary dependency baggage:

io.swagger:swagger-annotations com.google.code.findbugs:jsr305 com.squareup.okhttp3:okhttp com.squareup.okhttp3:logging-interceptor com.google.code.gson:gson io.gsonfire:gson-fire org.apache.oltu.oauth2:org.apache.oltu.oauth2.client org.apache.commons:commons-lang3 org.threeten:threetenbp javax.annotation:jsr250-api junit:junit

The OpenAPI code generator allows for more modern generated code when specifying library=native or library=microprofile rather than what appears to be currently used library=okhttp-gson (e.g. the default option)

Ideally, what would be pushed to maven central are at least 3 artifacts (1 legacy + 2 new), that developers can choose from, for example (in Gradle project):

implementation 'sh.ory.kratos:kratos-client:0.5.4-alpha.1' //For current users
implementation 'sh.ory.kratos:kratos-client-native:0.5.4-alpha.1' //For Java 11+ users
implementation 'sh.ory.kratos:kratos-client-microprofile:0.5.4-alpha.1' //For microprofile users

This is mostly maven/gradle code generation effort. I can take a stab at it, but need to know if you use maven or gradle for code generation (I see both present?)

Deserialization bug when running toSession for social sign in cookie?

Preflight checklist

Ory Network Project

No response

Describe the bug

I've been using social sign in with Azure AD successfully for some time, but there now seems to be a problem when trying to verify the users that are signed in using Azure. This problem might have been there for a long time, because this feature has not been used much in our system.

Reproducing the bug

Steps to reproduce the behaviour:

  1. Register a Microsoft tenant for social sign-in with scopes: email, profile. tenant: organization. subject source: userinfo.
  2. Try to log in with a tenant of your choice.
  3. Try to validate the session with the SDK: frontendApi.toSession(null, cookie)

Relevant log output

java.lang.IllegalArgumentException: The field `provider` in the JSON string is not defined in the `SessionAuthenticationMethod` properties. JSON: {"method":"oidc","aal":"aal1","completed_at":"2023-08-08T13:06:43.107679019Z","provider":"microsoft"}

Relevant configuration

No response

Version

0.13.1

On which operating system are you observing this issue?

macOS

In which environment are you deploying?

Ory Network

Additional Context

This was working before. At first I thought the problem was with me not having updated the kratos-client-java version for a long time, but upgrading to 0.13.1 did not do the trick.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.