private async Task <IClient> InitAddendaSDKClient() { var authSettings = new OktaSettings() { ClientId = "SECRET", ClientSecret = "SECRET", TokenUrl = "https://dev-SECRET.okta.com/oauth2/default/v1/token" }; var manager = new PortalClientSDKManager(); return(await manager.GetAddendaClient(authSettings, "https://localhost:44324/")); //Uncomment for Addenda API }
private async Task <IClient> InitAddendaSDKClient() { var authSettings = new OktaSettings() { ClientId = "SECRET", ClientSecret = "SECRET", TokenUrl = "https://dev-SECRET.okta.com/oauth2/default/v1/token" }; var manager = new PortalClientSDKManager(); //var aToken = "SECRET.eyJ2ZXIiOjEsImp0aSI6IkFULlliM1hQY2pRNVlnS2J4aUZqZTVfZUloZUNqYjJVRk9wSVBiTWJKS3JBZGMiLCJpc3MiOiJodHRwczovL2Rldi0xOTM1Njgub2t0YS5jb20vb2F1dGgyL2RlZmF1bHQiLCJhdWQiOiJhcGk6Ly9kZWZhdWx0IiwiaWF0IjoxNTY0NTExNTM3LCJleHAiOjE1NjQ1MTUxMzcsImNpZCI6IjBvYXVhYXRxbkRGaFpGZ2twMzU2Iiwic2NwIjpbImN1c3RvbV9zY29wZSJdLCJzdWIiOiIwb2F1YWF0cW5ERmhaRmdrcDM1NiJ9.Frs9wv4dlKm89iIDzGGleoMmYcpSplLgPCf70cRUtW1EPB34Why2TEPyFeYpZpTP_rzY8zc9OFVWHLObwX3DsoakHeqaHwAQCmpDapPfGAnsOKMHHe9b9c6KOiELWGwQJ6q0jpM7FYpEHQuDbusvwTuzfhohwK-CeQP4suwREitrvy0GAaGEHslXguIG7ihczEgh2s0k39kkb7vRma3Gzec9vJ2Jx7syX5XpRn-rTU3OLkr6tSYHvxqhfs0HiYCa39GxodGi8xVHj8GfdPN8HJXDWHV0vMGz0m5g0znSkyVH5mWyk-mmy4Z4bSabes-mcqTjfqSR99t_Zn0lqnB_VA"; return(await manager.GetAddendaClient(authSettings, "https://localhost:44324/")); //Uncomment for Addenda API }