File tree Expand file tree Collapse file tree 10 files changed +15
-18
lines changed
packages/openchs-android/src Expand file tree Collapse file tree 10 files changed +15
-18
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import _ from 'lodash';
66import { firebaseEvents , logEvent } from "../utility/Analytics" ;
77import BackupRestoreRealmService from "../service/BackupRestoreRealm" ;
88import SettingsService from "../service/SettingsService" ;
9- import { IDP_PROVIDERS } from "../service/BaseAuthProviderService " ;
9+ import { IDP_PROVIDERS } from "../model/IdpProviders " ;
1010
1111class LoginActions {
1212 static getInitialState ( ) {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import _ from 'lodash';
33import AuthenticationError from "../../service/AuthenticationError" ;
44import ServerError from "../../service/ServerError" ;
55import GlobalContext from "../../GlobalContext" ;
6- import { IDP_PROVIDERS } from "../../service/BaseAuthProviderService " ;
6+ import { IDP_PROVIDERS } from "../../model/IdpProviders " ;
77
88const ACCEPTABLE_RESPONSE_STATUSES = [ 200 , 201 ] ;
99
Original file line number Diff line number Diff line change 1+ export const IDP_PROVIDERS = {
2+ COGNITO : 'cognito' ,
3+ KEYCLOAK : 'keycloak' ,
4+ BOTH : 'both' ,
5+ NONE : 'none'
6+ } ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import UserInfoService from "./UserInfoService";
77import StubbedAuthService from "./StubbedAuthService" ;
88import CognitoAuthService from "./CognitoAuthService" ;
99import KeycloakAuthService from "./KeycloakAuthService" ;
10- import { IDP_PROVIDERS } from "./BaseAuthProviderService " ;
10+ import { IDP_PROVIDERS } from "../model/IdpProviders " ;
1111
1212@Service ( "authService" )
1313class AuthService extends BaseService {
Original file line number Diff line number Diff line change @@ -58,11 +58,4 @@ class BaseAuthProviderService extends BaseService {
5858
5959}
6060
61- const IDP_PROVIDERS = {
62- COGNITO : 'cognito' ,
63- KEYCLOAK : 'keycloak' ,
64- BOTH : 'both' ,
65- NONE : 'none'
66- }
67-
68- export { BaseAuthProviderService , IDP_PROVIDERS } ;
61+ export default BaseAuthProviderService ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import General from "../utility/General";
77import ErrorHandler from "../utility/ErrorHandler" ;
88import UserInfoService from "./UserInfoService" ;
99import AuthService from "./AuthService" ;
10- import { BaseAuthProviderService } from "./BaseAuthProviderService" ;
10+ import BaseAuthProviderService from "./BaseAuthProviderService" ;
1111
1212@Service ( "cognitoAuthService" )
1313class CognitoAuthService extends BaseAuthProviderService {
Original file line number Diff line number Diff line change @@ -8,10 +8,8 @@ import General from "../utility/General";
88import Service from "../framework/bean/Service" ;
99import RNFetchBlob from "rn-fetch-blob" ;
1010import AuthService from "./AuthService" ;
11- import Config from "../framework/Config" ;
12- import UserInfoService from "./UserInfoService" ;
1311import fs from 'react-native-fs' ;
14- import { IDP_PROVIDERS } from "./BaseAuthProviderService " ;
12+ import { IDP_PROVIDERS } from "../model/IdpProviders " ;
1513
1614
1715@Service ( "extensionService" )
Original file line number Diff line number Diff line change 11import Service from "../framework/bean/Service" ;
2- import { BaseAuthProviderService } from "./BaseAuthProviderService" ;
32import { postUrlFormEncoded } from "../framework/http/requests" ;
43import General from "../utility/General" ;
54import AuthenticationError , { NO_USER } from "./AuthenticationError" ;
5+ import BaseAuthProviderService from "./BaseAuthProviderService" ;
66
77
88@Service ( "keycloakAuthService" )
Original file line number Diff line number Diff line change 11import Service from "../framework/bean/Service" ;
22import General from "../utility/General" ;
3- import { BaseAuthProviderService } from "./BaseAuthProviderService" ;
3+ import BaseAuthProviderService from "./BaseAuthProviderService" ;
44
55@Service ( "stubbedAuthService" )
66class StubbedAuthService extends BaseAuthProviderService {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ import SyncService from '../service/SyncService';
3131import TypedTransition from '../framework/routing/TypedTransition' ;
3232import SetPasswordView from './SetPasswordView' ;
3333import LandingView from './LandingView' ;
34- import { IDP_PROVIDERS } from "../service/BaseAuthProviderService " ;
34+ import { IDP_PROVIDERS } from "../model/IdpProviders " ;
3535
3636@Path ( '/loginView' )
3737class LoginView extends AbstractComponent {
You can’t perform that action at this time.
0 commit comments