Giter Site home page Giter Site logo

java-client's Issues

Implement token enrollment via validate/check

privacyIDEA v3.8 allow enrolling a new token via validate/check request.

Update the java-client to use it.

  • Check if in PI Response exists an img and add it to the PIResponse object.
  • Update tests.

NOTE: Don't remove the old token enrollment method.

QUESTION: Should the old method generate a debug message, that there is a new, better, and safer method that is now recommended? And we recommend updating the PI server to >=3.8 to use it?
@nilsbehlen

Usage of realm with service account

the service account might be in a realm other than the user logging in.
So either assume the service account to be in the default realm or add a parameter for a service acc realm.

Add preferred client mode

privacyIDEA v3.8 will allow setting a preferred client mode: https://github.com/privacyidea/privacyidea/issues/3044#issuecomment-1302103651. This will be attached to the PI response as in the following example:

{
    "detail": {
        "preferred_client_mode": "webauthn",
        "multi_challenge": [
            {
                "client_mode": "webauthn",
                "image": "",
                "message": "Please confirm with your WebAuthn token (Generic WebAuthn Token)",
                "serial": "WAN00023132",
                "transaction_id": "09250011178417540855",
                "type": "webauthn"
            }
        ],
  • Valid modes: interactive(default), poll, webauthn, u2f.

  • Preferred client mode will be changed to non-default only if >=1 of the challenges contains a similar client_mode value. No need to compare it again here.

  • Update java-client to make use of this enhancement.

  • Update tests.

Send language to server

send the language of the plugin to pi to get errors etc in that language. (Probably by Language-Accept header).

Rework the endpoint::send method

Introducing Webauthn (#14) adds new requirements to the requests that are made to privacyIDEA:

  • Being able to set the Origin header for requests to /validate/check
  • Exclude certain request parameter values (the webauthn ones) from URL encoding as it will make them unusable.

Add "client" parameter to requests

Add the parameter "client" to requests which contains the IP from which the login was initated.
The paramter can be processed by privacyidea if configured.

Translate the preferred_client_mode names

Translate the preferred_client_mode names to these, which are used as a mode in the plugins.

"poll" to "push"
"interactive" to "otp"
The rest stays unchanged.

Update tests.

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.