replace sample auth file
This commit is contained in:
parent
4f8768966c
commit
6d79b9b600
3 changed files with 7 additions and 12 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -33,6 +33,7 @@ UserInterfaceState.xcuserstate
|
||||||
|
|
||||||
# other bits
|
# other bits
|
||||||
pnut-oauth.ts
|
pnut-oauth.ts
|
||||||
|
src/pages/login/pnutauth.ts
|
||||||
platforms/android/.gradle/
|
platforms/android/.gradle/
|
||||||
platforms/android/CordovaLib/build/
|
platforms/android/CordovaLib/build/
|
||||||
platforms/android/app/build/
|
platforms/android/app/build/
|
||||||
|
|
6
src/pages/login/pnutauth.ts.sample
Normal file
6
src/pages/login/pnutauth.ts.sample
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
export const pnutauth = {
|
||||||
|
url: "https://api.pnut.io/v0/oauth/access_token",
|
||||||
|
scope: "basic,stream,write_post,files",
|
||||||
|
clientId: "",
|
||||||
|
clientSecret: ""
|
||||||
|
}
|
|
@ -1,12 +0,0 @@
|
||||||
import { OAuthProvider } from 'ng2-cordova-oauth/provider';
|
|
||||||
|
|
||||||
export class PnutAuth extends OAuthProvider {
|
|
||||||
|
|
||||||
protected authUrl: string = 'https://pnut.io/oauth/authenticate';
|
|
||||||
protected defaults: Object = {
|
|
||||||
responseType: 'token',
|
|
||||||
clientId: '' // Insert your client ID and rename this file to pnut-oauth.ts
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
Reference in a new issue