generic-oauth2 icon indicating copy to clipboard operation
generic-oauth2 copied to clipboard

Bug: Browser session is not cleared after logout

Open Wuesteon opened this issue 3 years ago • 1 comments

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.

Wuesteon avatar Aug 17 '22 09:08 Wuesteon

#97

DwieDima avatar Sep 20 '22 07:09 DwieDima