Need Help? We are right here!
Thanks for your inquiry.
If you dont hear from us within 24 hours, please feel free to send a follow up email to info@xecurify.com
Search Results:
×Flutter SSO by miniOrange has developed a ready to use Single Sign-On solution for Flutter Apps. Flutter is a cross-platform framework that allows you to create apps for a variety of devices with just one code. miniOrange allows you to setup Single Sign-On(SSO) into using two standard protocols like SAML 2.0 and JSON web Tokens (JWT). Flutter SSO with JWT is achieved by protocol brokering between JWT and SAML. Flutter Apps has support for SSO using JSON Web Token (JWT) tokens. miniOrange allows your users to Single Sign-On into Flutter Apps by verifying Identity with your existing SAML 2.0 compliant Identity Provider and passing JWT tokens to Flutter Apps.
miniOrange provides user authentication from various external sources, which can be Directories (like ADFS, Microsoft Active Directory, Azure AD, OpenLDAP, Google, AWS Cognito etc), Identity Providers (like Shibboleth, Ping, Okta, OneLogin, KeyCloak), Databases (like MySQL, Maria DB, PostgreSQL) and many more.
dependencies:
flutter:
sdk: flutter
flutter_jwt_connector:
path: D:/sdk-and-connectors/flutter_jwt_connector
jose: ^0.3.2
flutter pub get
Custom Application Name | The name of your flutter application |
---|---|
Redirect-URL | Enter the app URL where you want to handle the JWT token. |
Identity Source | You need to select the user store or the external IDP where the user accounts will be stored. |
import 'package:flutter_jwt_connector/jwt_builder.dart';
ElevatedButton(onPressed: () => sso(), child: const Text("Login"))
sso() {
const url = ''; //
"https://swapnilj.miniorange.in/moas/broker/login/jwt/21582?client_id=s9BIi073EBW
qyoAJ&redirect_uri=http://localhost:4000/"
html.window.open(url, "_self");
}
class Login extends StatefulWidget {
String? token;
Login({Key? key, this.token}) : super(key: key);
@override
State createState() => _Login();
}
class _Login extends State {
String x509Cert = "< PLACE YOUR CERTIFICATE STRING HERE >";
@override
void initState() {
// check if token exists and login
if (widget.token != null) {
login();
}
super.initState();
}
login() async {
JWTBuilder jwtBuilder = JWTBuilder();
// Initialize the JWT
jwtBuilder.parseJwt(widget.token);
// set the secret that was shared by your IdP
jwtBuilder.setSecret(x509Cert);
bool verified = false;
Map payload;
try {
// Compare the hashed jwt with the one received
verified = await jwtBuilder.verifyJwt();
} catch (err) {
if (kDebugMode) {
print(err);
}
}
if (verified) {
// Once you find the JWT is verified, you can go ahead and get the data
from JWT
payload = jwtBuilder.getPayload();
String username = payload['username'];
String email = payload['email'];
// You can create a user session here if required and navigate to the home
page
}
}
miniOrange provides user authentication from various external sources, which can be Directories (like ADFS, Microsoft Active Directory, Azure AD, OpenLDAP, Google, AWS Cognito etc), Identity Providers (like Okta, Shibboleth, Ping, OneLogin, KeyCloak), Databases (like MySQL, Maria DB, PostgreSQL) and many more. You can configure your existing directory/user store or add users in miniOrange.
1. Create User in miniOrange
2. Bulk Upload Users in miniOrange via Uploading CSV File.
Here's the list of the attributes and what it does when we enable it. You can enable/disable accordingly.
Attribute | Description |
---|---|
Activate LDAP | All user authentications will be done with LDAP credentials if you Activate it |
Sync users in miniOrange | Users will be created in miniOrange after authentication with LDAP |
Fallback Authentication | If LDAP credentials fail then user will be authenticated through miniOrange |
Allow users to change password | This allows your users to change their password. It updates the new credentials in your LDAP server |
Enable administrator login | On enabling this, your miniOrange Administrator login authenticates using your LDAP server |
Show IdP to users | If you enable this option, this IdP will be visible to users |
Send Configured Attributes | If you enable this option, then only the attributes configured below will be sent in attributes at the time of login |
Refer our guide to setup LDAPS on windows server.
miniOrange integrates with various external user sources such as directories, identity providers, and etc.
Contact us or email us at idpsupport@xecurify.com and we'll help you setting it up in no time.
Our Other Identity & Access Management Products