Skip to content

Instantly share code, notes, and snippets.

{% when 'sign_in_page' %}
<script>window.location.href = 'https://localhost:9443/identity/jwtsso?jwtRP=lms-test-app';
</script>
{% when 'sign_up_page' %}
<script>window.location.href = 'https://localhost:9443/identity/jwtsso?jwtRP=lms-test-app';
</script>
{% when 'checkout_signin_signup_page' %}
<script>window.location.href = 'https://localhost:9443/identity/jwtsso?jwtRP=lms-test-app';
</script>
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 4 columns, instead of 2. in line 8.
Field,Description,Default Value,Sample Value
Relying Party,The name of the relying party. This will be needed when we invoke the authentication request.,,lms-test-app
Endpoint API,The endpoint where the JWT response should be sent to after authenticating the user. In the Thinkific LMS it should be in the format of {SITE_URL}/api/sso/v2/sso/jwt,,https://your-school.thinkific.com/api/sso/v2/sso/jwt
API Key,The API Key used to sign the JWT token which we've obtained earlier from the Thinkific Admin Portal.,,xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
JWT Token Expiration Period,The token expiration (exp) to set since the token was generated in seconds,120,60
JWT Signing Algorithm,The JWS Algorithm used to sign the token,HS256,Supported Algorithms: HS256/ HS384/ HS512
Redirect URL Regex,The regex to validate the Redirect to URL,,https://your-school.thinkific.com/.*
Error URL Regex,The regex to validate the Error to URL,,https://your-school.thinkific.com/.*
Logout URL,The logout URL to be redirected to after the successful l
@mifrazmurthaja
mifrazmurthaja / Activator.java
Created April 30, 2020 16:33
custom-carbon-health-check
package org.wso2.carbon.custom.healthcheck.internal;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.healthcheck.api.core.HealthChecker;
import org.wso2.carbon.custom.healthcheck.WebAppHealthChecker;
public class Activator implements BundleActivator {
@mifrazmurthaja
mifrazmurthaja / WebAppHealthChecker.java
Created April 30, 2020 16:32
custom-carbon-health-check
package org.wso2.carbon.custom.healthcheck;
import org.wso2.carbon.healthcheck.api.core.exception.BadHealthException;
import org.wso2.carbon.healthcheck.api.core.model.HealthCheckerConfig;
import org.wso2.carbon.healthcheck.api.core.HealthChecker;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.util.Properties;
import java.net.HttpURLConnection;
@mifrazmurthaja
mifrazmurthaja / pom.xml
Last active April 30, 2020 16:31
custom-carbon-health-check
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.wso2.carbon.custom.healthcheck</groupId>
<artifactId>org.wso2.carbon.healthcheck</artifactId>
<version>1.2.1</version>
<packaging>bundle</packaging>
<name>WSO2 Carbon - Sample Health Service</name>
<properties>