Coder Social home page Coder Social logo

kovacshuni / koauth Goto Github PK

View Code? Open in Web Editor NEW
36.0 36.0 16.0 366 KB

:closed_lock_with_key: OAuth 1.0a provider and consumer library for Scala & Java, storage independent/pluggable, async/reactive, designed to be used within a completely RESTful API.

License: Apache License 2.0

Scala 100.00%
authentication authorization oauth

koauth's People

Contributors

fkrauthan-hyperwallet avatar harshith-c avatar ianp avatar kovacshuni avatar michealzub avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

koauth's Issues

Sorting of parameters is wrong

There is a major bug in this library if it comes to sorting.

Given the following form parameters:

test=hello
test-abc=hello2
a=b
a=a

The OAuth Standard says the sorting should be as followed

a=a
a=b
test=hello
test-abc=hello2

The two sorting rules based on the specifications are:

  1. Sort by key names
  2. In case of duplicate key names sort this keys based on there value

The library right now first concatenate the params and then does a sort on a key=value string. That behaviour is wrong.

Should document dependency on Java 8 runtime

The com.hunorkovacs.koauth.service.Arithmetic package depends on Java library classes that do not exist in Java 7 or earlier (e.g. java.util.Base64). It would be nice if your README file pointed out this dependency.

Signature validation issue

In file koauth/service/provider/Verifier.scala line 150 you get the diff between the required fields and the provided fields. The problem is that the oauth standard allows to have more then the required fields in the OAuth Authorization header. But you never look into the diff result and always assume the validation failed.

This is a major issue if people are sending more then the required fields in there oauth Authorization header.

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.