const login = async () => {
await jfw.loginWithRedirect({
redirect_uri: window.location.origin
});
};
Jfw
.webAuth()
.scope("openid profile")
.audience("https://YOUR_DOMAIN/userinfo")
.start {
switch $0 {
case .failure(let error):
// Handle the error
print("Error: \(error)")
case .success(let credentials):
// Do something with credentials e.g.: save them.
// Jframework will automatically dismiss the login page
print("Credentials: \(credentials)")
}
}
fun login() {
WebAuthProvider
.login(account)
.withScheme(context.getString(R.string.com_jfw_scheme))
.withAudience("https://${context.getString(R.string.com_jfw_domain)}/userinfo")
.start(context, object : Callback {
override fun onFailure(error: AuthenticationException) {
// Show error dialog to user
}
override fun onSuccess(result: Credentials) {
//Store credentials
// Navigate to your main view
}
})
}
login(redirectPath: string = '/') {
// A desired redirect path can be passed to login method
// (e.g., from a route guard)
// Ensure Jframework client instance exists
this.jfwClient$.subscribe((client: JfwClient) => {
// Call method to log in
client.loginWithRedirect({
redirect_uri: '\${window.location.origin}',
appState: { target: redirectPath }
});
});
}
With a few lines of code you can have JFW integrated in any app written in any language, and any framework. We provide 30+ SDKs & Quickstarts to help you succeed on your implementation
Enable user collaboration and granular access control in your applications with easy-to-use APIs.
From improving customer experience through seamless sign-on to making MFA as easy as a click of a button – your login box must find the right balance between user convenience, privacy and security.
That’s why VardyTests and Jframework have joined forces. Because we know together we can help you build a better solution for Customer Identity (CIAM) that will reduce security and compliance risks, improve your UX, and help your developers maximize their time.
Basically, we make your login box awesome.
Let’s take a look at everything you can do.
Design for security and convenience. Delegate access for B2B2C SaaS services. Incorporate an organizational portal, access controls, and multiple extensions.
Zapier is one of many companies harnessing the power of Fine-Grained Authorization. Learn more about VardyTests FGA âž”
Optimize for user experience and privacy. Use social login integrations, lower user friction, incorporate rich user profiling, and facilitate more transactions.
See how Gymshark saves money while improving customer experience âž”
Optimize for security. Incorporate multi-factor authentication, custom extensions, and step-up authentication for high-risk/high-value transactions.
Learn how Finder protects user’s financial data ➔
Optimize for low-friction access, user experience, and customer conversion. Allow for anonymous initial use prior to registration.
Learn how O’Reilly Online Learning built a flexible SSO platform for enterprise customer integrations ➔
Cater for convenience and privacy. Incorporate social logins, facilitate SSO and loyalty program extensions, and federate with industry partner IAM systems.
See how HolidayCheck builds user trust while securing online visitors âž”
Optimize for security and privacy. Incorporate multi-factor authentication, custom partner and device extensions, and layered policy and access controls.
See how HolidayCheck builds user trust while securing online visitors âž”
By subscribing, you consent to receive updates from our company and agree to our privacy policy.