public void StringToPostLogoutRedirectUris() { foreach (var postLogout in ToLists(PostLogoutRedirectUrisString)) { PostLogoutRedirectUris.Add(postLogout); } }
public virtual void AddPostLogoutRedirectUri([NotNull] string postLogoutRedirectUri) { PostLogoutRedirectUris.Add(new ClientPostLogoutRedirectUri() { ClientId = Id, PostLogoutRedirectUri = postLogoutRedirectUri }); }
public void SetPostLogoutRedirectUris(IEnumerable <string> redirectUris) { if (PostLogoutRedirectUris == null) { PostLogoutRedirectUris = new List <string>(); } foreach (var uri in redirectUris) { if (uri.StartsWith("http://") || uri.StartsWith("https://")) { // add the uri specifically as given PostLogoutRedirectUris.Add(uri); } else { // otherwise add for for both HTTP & HTTPS since we don't know which one PostLogoutRedirectUris.Add($"http://{uri}"); PostLogoutRedirectUris.Add($"https://{uri}"); } } }
public void AddPostLogoutRedirectUri([NotNull] string postLogoutRedirectUri) { PostLogoutRedirectUris.Add(new ClientPostLogoutRedirectUriDto(Id, postLogoutRedirectUri)); }
public void AddEmptyPostRedirectUrl() => PostLogoutRedirectUris.Add(new SimpleValue <string>(String.Empty));