Questions tagged [oauth2-server]

20 questions
4
votes
2 answers

How to scale horizontally a spring-boot oauth2 server with JDBC implementation

I have a spring boot oauth2 server that uses a JDBC implementation. It is configured as an authorization server with @EnableAuthorizationServer. I'd like to scale that application horyzontally but it doesn't seem to work properly. I can connect…
kaizokun
  • 926
  • 3
  • 9
  • 31
4
votes
1 answer

app.oauth.grant is not a function (oauth2-server)

Whenever I run node oauth module I get error like app.oauth.grant is not a function
4
votes
1 answer

How to override default Yii2 - Filsh Oauth Server response

I am using Yii2 Filsh Oauth Server which is working fine,however when I login it generates AccessToken with its default fields i.e { "access_token": "f3389e81c234276967079b2293795fc9104a2fac", "expires_in": 86400, "token_type": "Bearer", …
Kamran Khatti
  • 3,754
  • 1
  • 20
  • 31
3
votes
1 answer

Method Laravel\\Passport\\Bridge\\AccessToken::__toString() must not throw an exception

I use these packages with these versions to create tokens for user login, but I encounter this error when creating tokens: composer.json "require": { "php": "^7.3|^8.0", "fideloper/proxy": "^4.4", "fruitcake/laravel-cors": "^2.0", …
Negar Javadzadeh
  • 325
  • 7
  • 11
3
votes
1 answer

automatic logout from simple-ember-auth/oauth2-server after inactivity

I have implemented a simple-ember-auth on the front and oauth2-server on the back, using password and refresh_token grants. When the authorisation token is about to expire (this time is set on the server), simple-ember-auth issues a refresh token…
eight
  • 167
  • 2
  • 13
2
votes
1 answer

laravel 5 using oauth2-server-laravel how to create client in oauth_clients table?

I am using the PasswordGrant, It's require client_id and client_secret params to generate access_token. But how to create a new client for a App ? Just make a new REST-ful API and insert it to database when App first launch? Is this a right way to…
refear99
  • 1,217
  • 3
  • 10
  • 13
2
votes
0 answers

REST interface from oauth2-server errors in nodejs

I am using the oauth2-server plugin for nodejs (npm) and have the following configuration: app.oauth = oauthserver({ model: oauth.model, grants: ['password'], debug: false }); When I GET /oauth/token without sending any parameter with…
user2500558
  • 73
  • 3
  • 10
2
votes
2 answers

Configuring oauth2-server-laravel with laravel-mongodb

I am trying to use oauth2-server-laravel with laravel-mongodb. After I generate migration using this command php artisan oauth2-server:migrations I tried to use php artisan migrate. But I got this error. [ErrorException] …
Md. Al-Amin
  • 1,423
  • 1
  • 13
  • 26
2
votes
1 answer

OAuth 2 Server Associating Scopes with Users?

When building an OAuth 2 server, is there anything wrong with associating scopes to users? Essentially allowing scopes to act as your applications roles? I've looked at the RFC but can't seem to find any guidance on this. The use case for a flow…
Kirill Fuchs
  • 13,446
  • 4
  • 42
  • 72
1
vote
0 answers

setting the roles for the user when using Google/FB/Github as Authorization server

I am planning to use Google as my OAuth2 Authorization server. How to configure the roles for the user, in case we are using Google,FB,Github as our Auth server? My Spring Security expects the roles/authorities to allow/deny access to the protected…
zilcuanu
  • 3,451
  • 8
  • 52
  • 105
1
vote
0 answers

FriendsOfSymfony/FOSOAuthServerBundle not set username

User assignment to tokens is not working in the Symfony 4 & FOSOAuthServerBundle system I am currently using. I realize Token control on the controller and I use FOSUserBundle for user verification. I will check userdata with controller and…
1
vote
1 answer

Unable to get User Credential grant type working

I have a Laravel 4.2 app that I have successfully implemented Authorization Code using oauth2-server-php. However, I can't seem to get User Credential grants working. Here's my code setting up the oauth server: App::singleton( 'oauth2', …
1
vote
0 answers

Module.exports in meteor

I want to use oauth2-server in my meteor project which is an api provider implemented using restivus. In documentation for oauth2-server they specify to require the model in configuration which obviously need to export the model js file. How to use…
0
votes
1 answer

Why am I getting a 401 for a public route when using express-oauth-server

I based my sample on this: https://github.com/oauthjs/express-oauth-server/blob/master/examples/postgresql/index.js However when I try to visit the /public route, I get a 401. The URL I'm accessing is…
Ash
  • 2,021
  • 2
  • 26
  • 59
0
votes
1 answer

Error Invalid grant: refresh token is invalid in getRefreshToken

I want to implement the function getRefreshToken with the oauth2-server module in Nodejs. I already implemented the whole password grant type successfull. But now I want to implement the refresh_token grant. I'm facing a problem by implementing the…
Stack
  • 1
  • 2
1
2