Pakete, Repositories und App-Kategorien suchen

Paketdetailsv0.0.3

okta_oidc

Ein Flutter-Plugin für die Okta OIDC-Authentifizierung ermöglicht sicheren Benutzerlogin, Token-Management und Identitätsintegration mithilfe von OpenID Connect mit Okta-Diensten.

AndroidiOS
30-Tage-Downloads
3220
Likes
7
Pub-Punkte
140

Paket installieren

flutter pub add okta_oidc

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Das okta_oidc-Paket ist ein Flutter-Plugin, das die sichere Authentifizierung mithilfe von OpenID Connect mit Okta-Diensten erleichtert. Es ermöglicht nahtloses Benutzer-Login, Token-Management und Identitätsintegration über Android- und iOS-Plattformen hinweg. Speziell für Entwickler konzipiert, die Okta-Identitätslösungen in Flutter-Anwendungen integrieren möchten, verwaltet das Plugin sicher OAuth 2.0-Flows, Token-Speicherung und Sitzungsmanagement. Das Plugin vereinfacht die Implementierung moderner Authentifizierungsabläufe und stellt die Einhaltung branchenüblicher Standards sicher. Besonders nützlich ist es in Unternehmensanwendungen, die eine starke Identitätsüberprüfung und Zugriffssteuerung erfordern.

Anwendungsfälle

  • Unternehmens-App-Authentifizierung
  • Single Sign-On (SSO)-Integration
  • Sichere Benutzeranmeldung mit Okta
  • Tokenbasierte Autorisierung
  • Mobile-App-Identitätsverwaltung

Hauptmerkmale

  • OpenID Connect-Unterstützung
  • Sichere Token-Verwaltung
  • Plattformübergreifend (Android & iOS)
  • Okta-Dienstintegration
  • Sitzungsverwaltung

Geeignet für

  • Unternehmensmobile Anwendungen
  • Apps, die SSO erfordern
  • Entwickler, die Okta-Identitätsservices verwenden
  • Authentifizierungsintensive Apps
  • Flutter-Apps, die sicheren Login benötigen

Hinweise

  • Benötigt Okta-Kontoeinrichtung
  • Es ist eine korrekte Umleitungs-URI-Konfiguration erforderlich
  • Abhängig von plattformspezifischer OAuth-Verarbeitung
  • Beschränkt auf Okta OIDC-Anbieter
  • Kann zusätzliche Backend-Validierung erfordern

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

okta_oidc

okta_oidc provide simple authentication integration in mobile apps.

Sample

Check out sample app Okta oidc

Installation

To add okta_oidc to your flutter application install instructions. Below are some Android and iOS specifics that are required for the okta_oidc to work correctly.

Android
  1. Make sure you set the minSdkVersion 21 or above in your "android/app/build.gradle"
android {
  minSdkVersion 21

  ...
}
  1. Similar to the sample app, you must add a redirect scheme to receive sign in results from the web browser. To do this, you must define a gradle manifest placeholder in your app's build.gradle:
manifestPlaceholders = [
    appAuthRedirectScheme: 'Add redirect schema here...'
  ]
iOS
  1. Make sure the minimum deployment target in Podfile set to 13 or above
platform :ios, '13.0'

Add `assets/okta_config.json` file in root of your project with below data.
{
  "client_id": "",
  "redirect_uri": "",
  "end_session_redirect_uri": "",
  "scopes": [],
  "discovery_uri": ""
}

Example

Available Methods
initOkta

This method will initialize okta with config file or map data.

code
OktaOidc oktaOidc = OktaOidc();

...
...

 Future<void> initOkta() async {
    final String response =
        await rootBundle.loadString('assets/okta_config.json');
    Map<String, dynamic>? oktaConfig = jsonDecode(response);
    oktaOidc.initOkta(oktaConfig);
  }
login

This method will redirect you to okta sign in page and return response or error.

code
 oktaOidc.login().then((value) {
                }).catchError((onError) {
                });
socialLogin

This method can be used for social login like linked in, google and apple sign in. Need to provide idp and idp-scope for social sign in.

code
  oktaOidc.socialLogin({
      "idp": "Add idp here...",
      "idp-scope": "Add scope here..."
    }).then((value) {
    });
getAccessToken

This method will return access token if logged in if token is expired it will refresh the token.

code
  oktaOidc.getAccessToken();
getUserProfile

This method returns user profile data.

code
  oktaOidc.getUserProfile();
logout

This method clears the user session.

code
  oktaOidc.logout();

Kategorien

Abhängigkeiten

Abhängigkeiten 1 Einträge

  • plugin_platform_interface^2.0.2

Quell-Repository

Projekte, die dieses Paket verwenden

Noch keine Daten verfügbar.