mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-27 10:42:45 +03:00
Add dynamic client_id/client_secret
no issue - added ghost-admin client_id to admin - added ghost-admin client_secret to admin - added client.read() api endpoint - added random generation of client_secret to migration - removed addClientSecret method - updated tests
This commit is contained in:
parent
7d22db9c40
commit
71215847c8
@ -1,8 +1,11 @@
|
||||
import Ember from 'ember';
|
||||
import Authenticator from 'simple-auth-oauth2/authenticators/oauth2';
|
||||
|
||||
export default Authenticator.extend({
|
||||
config: Ember.inject.service(),
|
||||
makeRequest: function (url, data) {
|
||||
data.client_id = 'ghost-admin';
|
||||
data.client_id = this.get('config.clientId');
|
||||
data.client_secret = this.get('config.clientSecret');
|
||||
return this._super(url, data);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user