Skip to content

Commit

Permalink
Merge pull request #48 from niscy-eudiw/feature/dredential-iisuer-id-…
Browse files Browse the repository at this point in the history
…update

[fix] credential fixes
  • Loading branch information
dtsiflit authored Jul 3, 2024
2 parents 054a2b2 + 784dc33 commit 727bc48
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 1 addition & 3 deletions Sources/Entities/CredentialIssuer/CredentialIssuerId.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ public struct CredentialIssuerId: Codable, Equatable {
}

guard
let validURL = URL(string: string),
validURL.scheme == "https",
validURL.fragment == nil
let validURL = URL(string: string)
else {
throw CredentialError.genericError
}
Expand Down
4 changes: 0 additions & 4 deletions Sources/Entities/IssuanceFlows/GetAuthorizationCodeURL.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ public struct GetAuthorizationCodeURL {
throw ValidationError.invalidUrl(urlString)
}

guard url.scheme == "https" else {
throw ValidationError.nonHttpsUrl(urlString)
}

let parameters = url.queryParameters
guard
parameters["\(Self.PARAM_CLIENT_ID)"] != nil
Expand Down

0 comments on commit 727bc48

Please sign in to comment.