Skip to content
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

O auth #9

Merged
merged 58 commits into from
May 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
d80a105
License info
RKuttruff Mar 5, 2022
3ed1e17
Create Auth.java
RKuttruff May 25, 2022
6941d40
Update Auth.java
RKuttruff May 25, 2022
1dd6f6d
XOAUTH2 IO Framework
RKuttruff May 25, 2022
b069065
New error codes
RKuttruff May 25, 2022
f4817a3
Auth state read
RKuttruff May 25, 2022
8247da4
Made base Errcodes publicly visible
RKuttruff May 25, 2022
b186e12
Create blank auth file if not existing
RKuttruff May 25, 2022
6ae7b56
State write
RKuttruff May 25, 2022
e1519af
Renamed interface method
RKuttruff May 25, 2022
b9fc1a3
XOAUTH2 AUTH Format String
RKuttruff May 25, 2022
b9d4b92
Add arg to interface method
RKuttruff May 25, 2022
21540be
Return for auth method
RKuttruff May 25, 2022
6d479b4
comp error fix
RKuttruff May 25, 2022
0fdfa3c
Util function
RKuttruff May 25, 2022
b2077d3
Removed unneeded catch
RKuttruff May 25, 2022
7eade9d
Update .gitignore
RKuttruff May 25, 2022
24cb187
gradle
RKuttruff May 25, 2022
c815bac
Update build.gradle
RKuttruff May 25, 2022
abf09ca
Copy sources to new path
RKuttruff May 25, 2022
3ae675e
Util function
RKuttruff May 25, 2022
8035fdf
Create auth.py
RKuttruff May 25, 2022
3477c27
Move auth.py
RKuttruff May 25, 2022
f4ab99f
Access token script
RKuttruff May 26, 2022
8437a82
Update .gitignore
RKuttruff May 26, 2022
0244393
Update .gitignore
RKuttruff May 26, 2022
6bff037
.env for CID + SECRET
RKuttruff May 26, 2022
b178e07
Replace .auth with .env
RKuttruff May 26, 2022
8a6e43a
Verify .env has needed fields
RKuttruff May 26, 2022
d889df8
Output format
RKuttruff May 26, 2022
7b0864a
Correct Scope
RKuttruff May 26, 2022
47412b3
merge
RKuttruff May 26, 2022
59454db
Merge branch 'OAuth' into XOAuth2-py
RKuttruff May 26, 2022
362c061
Merge pull request #7 from RKuttruff/XOAuth2-py
RKuttruff May 26, 2022
ef04ec6
method should be static not instance
RKuttruff May 26, 2022
34a6a76
Support for custom auth methods
RKuttruff May 26, 2022
70ed531
Auth
RKuttruff May 26, 2022
df73554
Moved ERR constant
RKuttruff May 26, 2022
2aaa8d1
Auth Subprocess
RKuttruff May 26, 2022
2d4f070
Forgot to delete these
RKuttruff May 26, 2022
293a7cc
User selection for auth methods
RKuttruff May 27, 2022
1456861
Create auth.exe
RKuttruff May 27, 2022
c780a60
Update .gitignore
RKuttruff May 27, 2022
9bb17aa
Move auth exe
RKuttruff May 27, 2022
03aeda6
Update XOAuth2Auth.java
RKuttruff May 27, 2022
673b487
Update XOAuth2Auth.java
RKuttruff May 27, 2022
20a65b2
Subproc fallback
RKuttruff May 27, 2022
65b4d92
Update .gitignore
RKuttruff May 27, 2022
44f17cb
Comp fix
RKuttruff May 27, 2022
1dc9c3f
Extract auth module exe from class if not present
RKuttruff May 27, 2022
64f1134
Token persistence
RKuttruff May 27, 2022
0379d00
Rebuild exe
RKuttruff May 27, 2022
4aa3ba3
License info
RKuttruff May 27, 2022
2fa844b
CLI args fix
RKuttruff May 27, 2022
4af2d44
Actual CLI fix
RKuttruff May 27, 2022
43ade23
Fix valid auth method fetching
RKuttruff May 27, 2022
497d824
patch
RKuttruff May 27, 2022
bd81230
see last commit
RKuttruff May 27, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@ hs_err_pid*

#Authentication tokens
.auth

src/creds.data
src/.env

#src/auth.exe
Test.java
19 changes: 19 additions & 0 deletions src/Auth.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*Copyright (C) 2022 Riley Kuttruff
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

public interface Auth{
static final int ERR_AUTH_INFO_NOT_FOUND = 0x9;
static final int ERR_AUTH_INFO_INCOMPLETE = 0xa;
static final int ERR_AUTH_SUBPROC_FAILED = 0xb;

public byte[] buildAuthString(String user);
}
12 changes: 12 additions & 0 deletions src/GUIClient.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*Copyright (C) 2022 Riley Kuttruff
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

import java.awt.*;
import java.awt.event.*;

Expand Down
12 changes: 12 additions & 0 deletions src/InvalidResponseException.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*Copyright (C) 2022 Riley Kuttruff
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
*
*/

public class InvalidResponseException extends SMTPException{
public InvalidResponseException(){
this(null);
Expand Down
Loading