@capgo/capacitor-social-login 8.3.34 → 8.3.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -31,6 +31,7 @@ Use the Auth Connect preset wrapper (`SocialLoginAuthConnect`) to log in with `a
31
31
 
32
32
  - Compatibility guide: https://github.com/Cap-go/capacitor-social-login/blob/main/docs/auth_connect_compatibility.md
33
33
  - Migration guide: https://github.com/Cap-go/capacitor-social-login/blob/main/MIGRATION_AUTH_CONNECT.md
34
+ - Keycloak setup: https://github.com/Cap-go/capacitor-social-login/blob/main/docs/setup_keycloak.md
34
35
 
35
36
  ## Documentation
36
37
 
@@ -538,7 +539,9 @@ On Web, Google `refresh()` is not implemented, even when using `mode: 'online'`.
538
539
 
539
540
  ## OAuth2 (Generic)
540
541
 
541
- The plugin supports generic OAuth2 authentication, allowing you to integrate with any OAuth2-compliant provider (GitHub, Azure AD, Auth0, Okta, custom servers, etc.). You can configure multiple OAuth2 providers simultaneously.
542
+ The plugin supports generic OAuth2 authentication, allowing you to integrate with any OAuth2-compliant provider (GitHub, Azure AD, Auth0, Okta, Keycloak, custom servers, etc.). You can configure multiple OAuth2 providers simultaneously.
543
+
544
+ For Keycloak, use the generic OAuth2 provider with your realm issuer URL. See the [Keycloak setup guide](./docs/setup_keycloak.md).
542
545
 
543
546
  ### Multi-Provider Configuration
544
547
 
@@ -677,8 +680,9 @@ await SocialLogin.refresh({
677
680
  | Option | Type | Required | Description |
678
681
  |--------|------|----------|-------------|
679
682
  | `appId` | string | Yes | OAuth2 Client ID |
680
- | `authorizationBaseUrl` | string | Yes | Authorization endpoint URL |
681
- | `accessTokenEndpoint` | string | No* | Token endpoint URL (*Required for code flow) |
683
+ | `issuerUrl` | string | No* | OpenID Connect issuer URL for discovery (*Use this or an authorization endpoint) |
684
+ | `authorizationBaseUrl` / `authorizationEndpoint` | string | No* | Authorization endpoint URL aliases for the same setting (*Use one alias or `issuerUrl`) |
685
+ | `accessTokenEndpoint` / `tokenEndpoint` | string | No* | Token endpoint URL aliases for the same setting (*Required for code flow without `issuerUrl`) |
682
686
  | `redirectUrl` | string | Yes | Callback URL for OAuth redirect |
683
687
  | `responseType` | 'code' \| 'token' | No | OAuth flow type (default: 'code') |
684
688
  | `pkceEnabled` | boolean | No | Enable PKCE (default: true) |
@@ -24,7 +24,7 @@ import org.json.JSONObject;
24
24
  @CapacitorPlugin(name = "SocialLogin")
25
25
  public class SocialLoginPlugin extends Plugin {
26
26
 
27
- private final String pluginVersion = "8.3.34";
27
+ private final String pluginVersion = "8.3.36";
28
28
 
29
29
  public static String LOG_TAG = "CapgoSocialLogin";
30
30
  public HashMap<String, SocialProvider> socialProviderHashMap = new HashMap<>();
@@ -16,7 +16,7 @@ import GoogleSignIn
16
16
  */
17
17
  @objc(SocialLoginPlugin)
18
18
  public class SocialLoginPlugin: CAPPlugin, CAPBridgedPlugin {
19
- private let pluginVersion: String = "8.3.34"
19
+ private let pluginVersion: String = "8.3.36"
20
20
  public let identifier = "SocialLoginPlugin"
21
21
  public let jsName = "SocialLogin"
22
22
  private static let userCancelledCode = "USER_CANCELLED"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-social-login",
3
- "version": "8.3.34",
3
+ "version": "8.3.36",
4
4
  "description": "All social logins in one plugin",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -61,7 +61,8 @@
61
61
  "prepublishOnly": "bun run build",
62
62
  "check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs",
63
63
  "example:install": "cd example-app && bun install --frozen-lockfile",
64
- "example:build": "bun run build && cd example-app && bun install --frozen-lockfile && bun run build"
64
+ "example:build": "bun run build && cd example-app && bun install --frozen-lockfile && bun run build",
65
+ "changelog:ai": "node scripts/generate-ai-changelog.mjs"
65
66
  },
66
67
  "devDependencies": {
67
68
  "@capacitor/android": "^8.0.0",