-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: TypeSafeHTTPBasic #49
Merged
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
af361c7
point at private repo
Andrew-Lees11 dc3a9c7
update package
Andrew-Lees11 ac5b3e4
Implement UserHTTPBasic prototype
djones6 22dd1c9
Fixes for demo
djones6 afe4141
change to pluginName
Andrew-Lees11 8db3211
Merge branch 'typeSafeMiddleware' of github.ibm.com:Andrew-Lees11/Kit…
Andrew-Lees11 da3b3f8
point at correct credentials
Andrew-Lees11 9a11e88
added TypeSafeHTTPBasic protocol
Andrew-Lees11 9bc969b
use Self in protocol
Andrew-Lees11 184d673
removed inProgress
Andrew-Lees11 61f06d2
removed auth redecleration
Andrew-Lees11 408fd04
added jazzy docs
Andrew-Lees11 437f97a
added back changed line
Andrew-Lees11 dfdd87d
docs on different lines
Andrew-Lees11 9143deb
pass to skip
Andrew-Lees11 3af6f5d
added codable routes example to readme
Andrew-Lees11 a44d0c1
remove public from readme
Andrew-Lees11 0fa0015
added tests
Andrew-Lees11 8123547
refactoring and adding to alltests
Andrew-Lees11 1438888
added tests to linux main
Andrew-Lees11 1132a35
fixed test
Andrew-Lees11 8e9c956
added equatable func
Andrew-Lees11 ca6906e
made verify passwor function
Andrew-Lees11 55f1a80
made tests use function
Andrew-Lees11 a3fb68e
update docs for verify func
Andrew-Lees11 5752c55
fix typo
Andrew-Lees11 384fbdc
point at cred 2.2
Andrew-Lees11 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,8 @@ import Foundation | |
|
||
public static let users = ["John" : "12345", "Mary" : "qwerasdf"] | ||
|
||
public static let realm = "Login message" | ||
|
||
public static var verifyPassword: ((String, String, @escaping (MyHTTPBasic?) -> Void) -> Void) = | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Usage example needs updating now that this is a function |
||
{ userId, password, callback in | ||
if let storedPassword = users[userId], storedPassword == password { | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably make this private!