-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added endpoints for creating and downloading api user certificates
- Loading branch information
Sergei Tsoganov
authored and
Sergei Tsoganov
committed
Jun 28, 2023
1 parent
b558c80
commit 47b6a1b
Showing
18 changed files
with
368 additions
and
93 deletions.
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
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
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 |
---|---|---|
@@ -1,8 +1,15 @@ | ||
class CertificateMailer < ApplicationMailer | ||
def new_certificate_signing_request(email:, api_user:, csr:) | ||
def certificate_signing_requested(email:, api_user:, csr:) | ||
@certificate = csr | ||
@api_user = api_user | ||
subject = 'New Certificate Signing Request Received' | ||
mail(to: email, subject: subject) | ||
end | ||
|
||
def signed(email:, api_user:, crt:) | ||
@crt = crt | ||
@api_user = api_user | ||
subject = "Certificate Signing Confirmation for API User '#{@api_user.username}'" | ||
mail(to: email, subject: subject) | ||
end | ||
end |
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
Oops, something went wrong.