Code Monkey home page Code Monkey logo

auth2's Introduction

KBase Developer Documentation

Core Service Docs

Relation Engine and Search codebases

User help

auth2's People

Contributors

arfathpasha avatar eapearson avatar jsfillman avatar kkellerlbl avatar mrcreosote avatar sychan avatar xiangs18 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

auth2's Issues

If one user in a set of users for validation is an illegal user name, the entire call fails

Instead allow skipping invalid user names in the same way non-existent user names are skipped.

for (final String u: usersplt) {
try {
uns.add(new UserName(u.trim()));
} catch (MissingParameterException | IllegalParameterException e) {
//TODO CODE this exception could use some clean up
throw new IllegalParameterException(ErrorType.ILLEGAL_USER_NAME, String.format(
"Illegal user name [%s]: %s", u, e.getMessage()));
}
}
return uns;

Investigate suggestname speed

The suggestname endpoint is taking about 300ms to return in prod, which is too long to use in a typeahead CLI. There's not much going on here, so it's odd that it's that slow. Investigate slowness and improve if possible

Fix test failure due to timing issues

     [junit] Testcase: globusToken took 0.389 sec
    [junit] 	FAILED
    [junit] incorrect token
    [junit] Expected: is <{access_token=ETRK25S3P6YBD66DYAX6IWR5QMX564E6, refresh_token=, token_id=2f967910-61b1-4d0a-974c-3cb408f73315, user_name=foo, lifetime=3600, issued_on=1664576823, expiry=1664580423, scopes=[], token_type=Bearer, expires_in=3600, client_id=foo}>
    [junit]      but: was <{access_token=ETRK25S3P6YBD66DYAX6IWR5QMX564E6, refresh_token=, token_id=2f967910-61b1-4d0a-974c-3cb408f73315, user_name=foo, lifetime=3600, issued_on=1664576823, expiry=1664580423, scopes=[], token_type=Bearer, expires_in=3599, client_id=foo}>
    [junit] junit.framework.AssertionFailedError: incorrect token
    [junit] Expected: is <{access_token=ETRK25S3P6YBD66DYAX6IWR5QMX564E6, refresh_token=, token_id=2f967910-61b1-4d0a-974c-3cb408f73315, user_name=foo, lifetime=3600, issued_on=1664576823, expiry=1664580423, scopes=[], token_type=Bearer, expires_in=3600, client_id=foo}>
    [junit]      but: was <{access_token=ETRK25S3P6YBD66DYAX6IWR5QMX564E6, refresh_token=, token_id=2f967910-61b1-4d0a-974c-3cb408f73315, user_name=foo, lifetime=3600, issued_on=1664576823, expiry=1664580423, scopes=[], token_type=Bearer, expires_in=3599, client_id=foo}>
    [junit] 	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
    [junit] 	at us.kbase.test.auth2.service.api.TestModeIntegrationTest.globusToken(TestModeIntegrationTest.java:456)
    [junit] 
    [junit] Testcase: me took 0.393 sec
    [junit] Testcase: clear took 0.416 sec
    [junit] Testcase: setRoles took 0.382 sec
    [junit] Testcase: createAndGetTestUser took 0.396 sec
    [junit] Test us.kbase.test.auth2.service.api.TestModeIntegrationTest FAILED

Remove env1 section from deployment template

Can just use the additional_config section and reduce complexity, rather than having one special case.

E.g. remove these lines:

https://github.com/kbase/auth2/blob/master/deployment/conf/.templates/deployment.cfg.templ#L23-L24
https://github.com/kbase/auth2/blob/master/deployment/conf/.templates/deployment.cfg.templ#L33-L34
https://github.com/kbase/auth2/blob/master/deployment/conf/.templates/deployment.cfg.templ#L43-L44

Need to coordinate with devops before this happens as they'll need to change their config in lockstep.

Make the manage auth script easier to access

  • Build it in the docker file. Currently only the war is built. This might mean the source / class files need to be copied across as well or the script needs to be modified to use the war or jar file.
  • Explicitly mention the ant script target in the admin section when talking about the manage script.

Fully document all the UI endpoints

Currently only the endpoints for the start of a user flow are documented in the readme, and furthermore their signatures are not documented. Further endpoints and their signatures are discoverable by traversing the user flow from the starting endpoint, but should also be fully documented.

Redo the docker file

kb_jre is super old, try to use off the shelf images vs. KBase custom images.

Might need to do this at the same time as gradleization to get java 11 in at the same time - some of the jars didn't agree with 11 IIRC. It'll be much easier to update the dependencies if gradleized.

Update index creation before upgrading to Mongo 4.2

Mongo 4.2 change how indexes are built and it appears as though the default behavior is background creation. It's not clear if the client blocks while the index is created. If not, the service could start while the necessary indexes aren't in place which could cause corrupt data and index build fails.

Equivalent of kbase/workspace_deluxe#472

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.