Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Browser session is not cleared after logout #210

Open
Wuesteon opened this issue Aug 17, 2022 · 1 comment
Open

Bug: Browser session is not cleared after logout #210

Wuesteon opened this issue Aug 17, 2022 · 1 comment

Comments

@Wuesteon
Copy link

Wuesteon commented Aug 17, 2022

Capacitor version:

Run npx cap doctor:

Latest Dependencies:

  @capacitor/cli: 4.0.1
  @capacitor/core: 4.0.1
  @capacitor/android: 4.0.1
  @capacitor/ios: 4.0.1

Installed Dependencies:

  @capacitor/cli: 3.6.0
  @capacitor/android: 3.6.0
  @capacitor/ios: 3.6.0
  @capacitor/core: 3.6.0

Library version:

  • 3.0.1

OAuth Provider:

  • Other: (oidc)

Your Plugin Configuration

{
const OAUTH_OPTIONS: OAuth2AuthenticateOptions = {
  authorizationBaseUrl: `${environment.auth.baseUrl}/realms/portal/protocol/openid-connect/auth`,
  accessTokenEndpoint: `${environment.auth.baseUrl}/realms/portal/protocol/openid-connect/token`,
  logoutUrl: `${environment.auth.baseUrl}/realms/portal/protocol/openid-connect/logout`,
  scope: "email profile openid",
  logsEnabled: true,
  web: {
    appId: "app",
    responseType: "token", // implicit flow
    accessTokenEndpoint: "",
    redirectUrl: "http://localhost:4200",
    windowOptions: "height=600,left=0,top=0"
  },
  android: {
    pkceEnabled: true,
    appId: "app",
    responseType: "code",
    redirectUrl: "ch.app.name:/" // Bundle ID from google dev console
  },
  ios: {
    pkceEnabled: true,
    appId: "app",
    responseType: "code",
    redirectUrl: "ch.app.name:/" // Bundle ID from google dev console
  }
};}

Affected Platform(s):

  • iOS
    • Version/API Level: 15.5
    • Device Model: iphone 12 pro
    • Content of your Info.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleDevelopmentRegion</key>
	<string>en</string>
	<key>CFBundleDisplayName</key>
	<string>pe-app-app</string>
	<key>CFBundleExecutable</key>
	<string>$(EXECUTABLE_NAME)</string>
	<key>CFBundleIdentifier</key>
	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleName</key>
	<string>$(PRODUCT_NAME)</string>
	<key>CFBundlePackageType</key>
	<string>APPL</string>
	<key>CFBundleShortVersionString</key>
	<string>$(MARKETING_VERSION)</string>
	<key>CFBundleURLTypes</key>
	<array>
		<dict>
			<key>CFBundleTypeRole</key>
			<string>Viewer</string>
			<key>CFBundleURLName</key>
			<string>ch.app.name</string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>ch.app.name</string>
			</array>
		</dict>
	</array>
	<key>CFBundleVersion</key>
	<string>1</string>
	<key>FirebaseAppDelegateProxyEnabled</key>
	<string>NO</string>
	<key>LSRequiresIPhoneOS</key>
	<true/>
	<key>NSAppTransportSecurity</key>
	<dict>
		<key>NSAllowsArbitraryLoads</key>
		<true/>
	</dict>
	<key>UIBackgroundModes</key>
	<array>
		<string>fetch</string>
		<string>remote-notification</string>
	</array>
	<key>UILaunchStoryboardName</key>
	<string>LaunchScreen</string>
	<key>UIMainStoryboardFile</key>
	<string>Main</string>
	<key>UIRequiredDeviceCapabilities</key>
	<array>
		<string>armv7</string>
	</array>
	<key>UISupportedInterfaceOrientations</key>
	<array>
		<string>UIInterfaceOrientationPortrait</string>
		<string>UIInterfaceOrientationLandscapeLeft</string>
		<string>UIInterfaceOrientationLandscapeRight</string>
	</array>
	<key>UISupportedInterfaceOrientations~ipad</key>
	<array>
		<string>UIInterfaceOrientationPortrait</string>
		<string>UIInterfaceOrientationPortraitUpsideDown</string>
		<string>UIInterfaceOrientationLandscapeLeft</string>
		<string>UIInterfaceOrientationLandscapeRight</string>
	</array>
	<key>UIViewControllerBasedStatusBarAppearance</key>
	<true/>
	<key>ITSAppUsesNonExemptEncryption</key>
	<false/>
</dict>
</plist>

Current Behavior

I Logout then sign in, the browser automatically closes and I`m signed in.

Expected Behavior

I should have to enter my credentials again after I logged out.

@DwieDima
Copy link

#97

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants