Skip to content
pubscout

okta_oidc

0.0.3, released a year ago by an unverified publisher

Flutter plugin for Okta OIDC authentication and token management

WASM-readyUnverified publisher
$ flutter pub add okta_oidc
Source repository

What it does

Enables secure user login, token management, and identity integration using OpenID Connect with Okta services. It provides methods for initialization, standard login, social login, access token retrieval, user profile fetching, and logout.

AI-written summary of version 0.0.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to authenticate users via Okta in your Flutter application
  • You require OIDC token management and social login options supported by Okta

Skip it when

  • You are using backend identity providers other than Okta
  • You do not want to manage native platform configuration for browser redirects

Strengths

  • Simplifies Okta integration with ready-to-use methods for login, logout, and token handling
  • Supports social login options like LinkedIn, Google, and Apple sign-in via Okta

Weaknesses

  • Limited documentation on advanced error handling and edge cases
  • Requires manual native platform setup for Android and iOS

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
1

Requires setting minSdkVersion 21 or above and adding appAuthRedirectScheme in Android build.gradle, setting minimum iOS deployment target to 13.0 in Podfile, and adding an assets/okta_config.json configuration file.

OktaOidc oktaOidc = OktaOidc();
final String response = await rootBundle.loadString('assets/okta_config.json');
Map<String, dynamic>? oktaConfig = jsonDecode(response);
oktaOidc.initOkta(oktaConfig);
oktaOidc.login().then((value) {}).catchError((onError) {});

Alternatives

Packages that do the same job and could replace okta_oidc.

  • firebase_auth

    Pick it if you are using Firebase as your backend authentication provider instead of Okta.

  • google_sign_in

    Pick it if you only need Google Sign-In rather than full Okta OIDC integration.

Works with

Packages commonly used together with okta_oidc: ones it builds on, ones built on it, and its own family.