uafrica / oauth-server

OAuth Server
Other
51 stars 51 forks source link

Added option to change class names for storages and resource/authorize server #29

Closed sean-nicholas closed 8 years ago

sean-nicholas commented 8 years ago

Now you can change the class names for storages in OAuthAuthenticate and OAuthComponent by supplying a config array formated like this:

[
    'storages' => [
        'scope' => [
            'className' => '...'
        ]
    ]
]

Additionally changing the resource and authorize server is possible:

[
    'resourceServer' => [
          'className' => '...'
     ]
]
[
    'authorizationServer' => [
          'className' => '...'
     ]
]

The advantage is that users can swap easily the storage implementation with their own one.

dakota commented 8 years ago

Looks good, but currently failing codesniffer tests (https://travis-ci.org/uafrica/oauth-server/jobs/91112519).

sean-nicholas commented 8 years ago

Oh sorry, forgot to sniff my code. I will update asap.

sean-nicholas commented 8 years ago

Fixed

sean-nicholas commented 8 years ago

Any update on this?

dakota commented 8 years ago

Sorry, completely forgot!