Commit Graph

2708 Commits

Author SHA1 Message Date
Son NK c58d9052e7 rename can_create_custom_email -> can_create_new_custom_alias, can_create_new_email -> can_create_new_random_alias 2019-12-15 18:55:16 +02:00
Son NK 6764a4b582 use "default" hostname if hostname is too short 2019-12-15 18:55:16 +02:00
Son NK c012d3686a only premium user can add custom domain 2019-12-15 18:55:16 +02:00
Son NK 3f189163dd notify admin when user creates new custom domain or custom alias associated with custom domain 2019-12-15 18:55:16 +02:00
Son NK 0234af03d3 handle custom domain in custom alias 2019-12-15 18:55:16 +02:00
Son NK 3402d64249 display when a custom domain is created and number of aliases 2019-12-15 18:55:16 +02:00
Son NK 24cb2688ca add gen_email.custom_domain_id foreign key 2019-12-15 18:55:16 +02:00
Son NK a827b27215 add custom_domain view 2019-12-15 18:55:16 +02:00
Son NK 5d9420a763 add EMAIL_SERVERS_WITH_PRIORITY and EMAIL_SERVERS config 2019-12-15 18:55:16 +02:00
Son NK 79a7985221 handle the case where no hostname is provided in /api/alias/new 2019-12-15 18:55:16 +02:00
Son NK b59ffb94b2 Remove Stripe usage 2019-12-15 18:55:16 +02:00
Son NK 40254c54a3 remove stripe columns in User model 2019-12-15 18:55:16 +02:00
Son NK 8471f3a19f add external-link icon when appropriate 2019-12-15 18:55:16 +02:00
Son NK 2b00ceaa6b put extension download link to api-key page 2019-12-15 18:55:16 +02:00
Son NK b514068340 add CustomDomain model 2019-12-15 18:55:16 +02:00
Son NK 975dc7ff21 fix query lost when post 2019-12-15 18:55:16 +02:00
Son NK 6ea43275ed remove user.can_use_api_key 2019-12-15 18:55:16 +02:00
Son NK fd7f819803 allow cross_origin for /api/alias/new 2019-12-15 18:55:16 +02:00
Son NK 786d640511 fix migration 2019-12-15 18:55:16 +02:00
Son NK 7bedd40966 add user.can_use_custom_domain, user.can_use_api_key 2019-12-15 18:55:16 +02:00
Son NK efd0e97ebd prettify api key page 2019-12-15 18:55:16 +02:00
Son NK 4f874eec43 Create API Key page 2019-12-15 18:55:16 +02:00
Son NK 6c4a173de5 create /api/alias/new using api-key as authentication 2019-12-15 18:55:16 +02:00
Son NK 565508689f create AliasUsedOn and ApiKey model 2019-12-15 18:55:16 +02:00
Son NK a5e1a36718 lower case query before search 2019-12-15 18:55:16 +02:00
Son NK b9bce29534 fix search input not large enough on mobile: use col-md-3 instead of col-3 2019-12-15 18:55:16 +02:00
Son NK efd4f40fb7 add autofocus to custom alias 2019-12-15 18:55:16 +02:00
Son NK f611d165c3 autofocus search field 2019-12-15 18:55:16 +02:00
Son NK 28c8fa0f4d add alias search 2019-12-15 18:55:16 +02:00
Son NK e18bbd1cc4 improve wording 2019-12-15 18:55:16 +02:00
Son NK 108b41842e remove user.trial_expiration 2019-12-15 18:55:16 +02:00
Son NK 6e71541985 remove trial concept 2019-12-15 18:55:16 +02:00
Son NK 8dca65678e improve wording 2019-12-15 18:55:15 +02:00
Son NK 5a9d3b0245 alias activity: fix arrow hidden on mobile 2019-12-15 18:55:15 +02:00
Son NK 2ec89afac2 add ADMIN_EMAIL and send notif to this email 2019-12-15 18:55:15 +02:00
Son NK 0717c91a18 improve onboarding 2019-12-15 18:55:15 +02:00
Son NK 019aae24f3 Activation email: use base template, change wording. 2019-12-15 18:55:15 +02:00
Son NK 837e1ffcf6 add List-Unsubscribe-Post header. Block alias directly if POST, otherwise ask user confirmation. 2019-12-15 18:55:15 +02:00
Son NK 45cef7a4ef create unsubscribe view to block quickly an alias 2019-12-15 18:55:15 +02:00
Son NK 34cf72eaee create POSTFIX server 2019-12-15 18:55:15 +02:00
Son NK 38d9654624 fix cancel email change 2019-12-15 18:55:15 +02:00
Son NK 8889dc119f only display profile updated message when something changes 2019-12-15 18:55:15 +02:00
Son NK d061ad7d56 make sure user cannot register with SL email 2019-12-15 18:55:15 +02:00
Son NK 0c85cae6ad handle email change in setting 2019-12-15 18:55:15 +02:00
Son NK 2dd25cc72d create change_email view 2019-12-15 18:55:15 +02:00
Son NK be6266fb0e create change-email email 2019-12-15 18:55:15 +02:00
Son NK 5d52a784f2 add EmailChange model 2019-12-15 18:55:15 +02:00
Son NK e46592019b remove unique constraint on user on deleted_alias table 2019-12-15 18:55:15 +02:00
Son NK 539d87d0a3 make to not reuse alias 2019-12-15 18:55:15 +02:00
Son NK 5c119a933d add DeletedAlias model 2019-12-15 18:55:15 +02:00
Son NK 58504e3b8d display new alias on top 2019-12-15 18:55:15 +02:00
Son NK 711ae83751 show message when logged in user tries goes to register 2019-12-15 18:55:15 +02:00
Son NK a22375e76a improve wording for login & register 2019-12-15 18:55:14 +02:00
Son NK c5b65c108b fix name can be absent in github data
https://sentry.io/organizations/son/issues/1201398007/?project=1478143&query=is%3Aunresolved
2019-12-15 18:55:14 +02:00
Son NK 673b9e72ee show send test and delete buttons 2019-12-15 18:55:14 +02:00
Son NK 64180c4077 do not show email 2019-12-15 18:55:14 +02:00
Son NK 276e37a9ab send welcome email when user creates new account 2019-12-15 18:55:14 +02:00
Son NK 67f7b95c36 add Message-ID and Date header to email 2019-12-15 18:55:14 +02:00
Son NK 3ebb75ca07 Show copy and activity button 2019-12-15 18:55:14 +02:00
Son NK d929cea771 improve dashboard page 2019-12-15 18:55:14 +02:00
Son NK 5b8bc68da1 add alias log page 2019-12-15 18:55:14 +02:00
Son NK 3a920585ce add ForwardEmailLog model 2019-12-15 18:55:14 +02:00
Son NK ec3f2116ff do not show copy button on disabled alias 2019-12-15 18:55:14 +02:00
Son NK 0b9f28970f fix send_test_email_alias 2019-12-15 18:55:14 +02:00
Son NK 6879490557 test email template 2019-12-15 18:55:14 +02:00
Son NK 6f93f419c2 send by postfix only 2019-12-15 18:55:14 +02:00
Son NK 727830be6b improve email wording for test email 2019-12-15 18:55:14 +02:00
Son NK 0ed2ef60c5 remove html marker for test email 2019-12-15 18:55:14 +02:00
Son NK 0a60d01596 use postfix for testing trigger email 2019-12-15 18:55:14 +02:00
Son NK f366e1c383 add send_by_postfix, to distinct with send_by_sendgrid 2019-12-15 18:55:14 +02:00
Son NK 47d5b75dc4 remove partner table 2019-12-15 18:55:14 +02:00
Son NK a084ea880d remove become partner view 2019-12-15 18:55:14 +02:00
Son NK 53df01e54b if user cancels subscription, user is still premium until the next billing_date + 1 2019-12-15 18:55:14 +02:00
Son NK 034605d9ac do not use next_bill_date to know whether user is premium 2019-12-15 18:55:13 +02:00
Son NK 469024179c fix trial_expiration can be None 2019-12-15 18:55:13 +02:00
Son NK 4a56d2eef5 add billing and pricing page 2019-12-15 18:55:13 +02:00
Son NK 6f7c99963b remove pricing2 2019-12-15 18:55:13 +02:00
Son NK 263f68ecec Change subscription model
- create subscription table
- rename plan_expiration -> trial_expiration
- remove user.plan, user.promo_codes
2019-12-15 18:55:13 +02:00
Son NK 1f3239b251 rename pricing to pricing2 to save stripe implementation for reference 2019-12-15 18:55:13 +02:00
Son NK c66f424c51 redirect to ?error=invalid_client_id|http_not_allowed|unknown_redirect_uri instead of return 400 2019-12-15 18:55:13 +02:00
Son NK 61a3844ec4 Add tooltip for email forwarding switch, copy and send test email 2019-12-15 18:55:13 +02:00
Son NK 8f878b4c5d try to make working with postfix outside docker (in host) 2019-12-15 18:55:13 +02:00
Son NK c2546cb0de fix test 2019-12-15 18:55:13 +02:00
Son NK c1ac71abac add forward_email table 2019-12-15 18:55:13 +02:00
Son NK 4231a5691a improve feedback email 2019-12-15 18:55:13 +02:00
Son NK 1fbe8e2d4f if this is the first app user creates, sends an email to ask for feedback 2019-12-15 18:55:13 +02:00
Son NK 62daf5eadb improve notify_admin email 2019-12-15 18:55:13 +02:00
Son NK 1a85ab8dcc use AppID, AppSecret instead of OAuth2 Client ID 2019-12-15 18:55:13 +02:00
Son NK 4c34775aa2 fix cancel button in authorization page when user is not login 2019-12-15 18:55:13 +02:00
Son NK 232d250186 support 127.0.0.1 as well as localhost 2019-12-15 18:55:13 +02:00
Son NK 5eb3f26286 improve UI 2019-12-15 18:55:13 +02:00
Son NK f518085f1a improve wording 2019-12-15 18:55:13 +02:00
Son NK 62c3b4cd02 highlight newly created gen-email 2019-12-15 18:55:12 +02:00
Son NK 3e0bc27bad better notify_admin message 2019-12-15 18:55:12 +02:00
Son NK 9a8282107f avatarURL returned in user_info is expired in 1 week 2019-12-15 18:55:12 +02:00
Son NK 63183b7104 cancel is handled the same way as "deny" 2019-12-15 18:55:12 +02:00
Son NK ef807bf293 Add message to invite user creating a new app 2019-12-15 18:55:12 +02:00
Son NK ed9e3f9085 Show "upgrade" button if user is in trial 2019-12-15 18:55:12 +02:00
Son NK 7cb1c219ed simplify pricing page now that monthly is gone 2019-12-15 18:55:12 +02:00
Son NK 5ff317538c remove monthly pricing, display 20$ for monthly pricing 2019-12-15 18:55:12 +02:00
Son NK f4ea3745c1 update docs url 2019-12-15 18:55:12 +02:00
Son NK 3fe3099e1d remove all step views 2019-12-15 18:55:12 +02:00
Son NK e575f21052 show user client-details after creation (no more step guide) and add guide message 2019-12-15 18:55:12 +02:00
Son NK 3a0f0ca780 Take into account expiration for AuthCode and OauthToken 2019-12-15 18:55:12 +02:00
Son NK 2693ba5838 make sure expiration is handled for ActivationCode and ResetPasswordCode 2019-12-15 18:55:12 +02:00
Son NK 4704ca0bc6 add expired column to AuthCode and OAuthToken 2019-12-15 18:55:12 +02:00
Son NK d7d2ea04a9 replace lyra by GA 2019-12-15 18:55:12 +02:00
Son NK 8dd6346f33 allow dash in email alias 2019-12-15 18:55:12 +02:00
Son NK c22a7d3f0f small improvemen UX 2019-12-15 18:55:12 +02:00
Son NK 05dc03ef8a use card layout for app list, 2019-12-15 18:55:12 +02:00
Son NK a44ce732be add advanced app setting: delete app 2019-12-15 18:55:12 +02:00
Son NK 1dd7a761fa split client details into 3 pages: basic info, oauth settings, oauth endpoints 2019-12-15 18:55:12 +02:00
Son NK 28d475ea22 better avatar pic: use name initial as avatar 2019-12-15 18:55:12 +02:00
Son NK 83abbe5406 set clipboard behavior on all pages 2019-12-15 18:55:12 +02:00
Son NK aeb4108570 use form.validate_on_submit() whenever possible 2019-12-15 18:55:12 +02:00
Son NK 40f8c610d2 do not change FLASK_SECRET at each new deployment 2019-12-15 18:55:11 +02:00
Son NK c76d55bf40 do not ask for app website url 2019-12-15 18:55:11 +02:00
Son NK 50c8145faa remove scopes from app listing page 2019-12-15 18:55:11 +02:00
Son NK 78e274addf add support for response_mode(query and fragment), nonce 2019-12-15 18:55:11 +02:00
Son NK e563dff496 add response_type to AuthCode and OauthToken model 2019-12-15 18:55:11 +02:00
Son NK b2d4ac8e65 add get_response_types_from_str, response_types_to_str 2019-12-15 18:55:11 +02:00
Son NK 47109e6011 add "sub", fix test 2019-12-15 18:55:11 +02:00
Son NK 3f7900f07e fix scope in /oauth/token 2019-12-15 18:55:11 +02:00
Son NK 82d52ec0ae enable CORS for /oauth/token 2019-12-15 18:55:11 +02:00
Son NK efddc68764 add auth_time in id_token 2019-12-15 18:55:11 +02:00
Son NK f6e71436ec fix "kid" in id_token 2019-12-15 18:55:11 +02:00
Son NK ba15837b01 add some tests for authorize page
- non-authenticated user,
- non supported flow
- authorization page displayed correctly
- code flow without openid in scope
- code flow with openid in scope
2019-12-15 18:55:11 +02:00
Son NK 8185af7770 update UI on step implicit flow 2019-12-15 18:55:11 +02:00
Son NK 0bc0f751bf remove flask example 2019-12-15 18:55:11 +02:00
Son NK 572ac772e9 fix 2019-12-15 18:55:11 +02:00
Son NK 117f4110f8 notify admin when new app gets created 2019-12-15 18:55:10 +02:00
Son NK 4e67275071 provide oauth2 urls in app detail page, improve UI 2019-12-15 18:55:10 +02:00
Son NK 410a746c25 add demo example to step 2019-12-15 18:55:10 +02:00
Son NK 76cb892d77 do not show apps section on dashboard if there's no app 2019-12-15 18:55:10 +02:00
Son NK bde3edaf56 remove User.is_developer column 2019-12-15 18:55:10 +02:00
Son NK 06f51099a5 all users can have access to developer tab 2019-12-15 18:55:10 +02:00
Son NK ea123b0922 remove partner code 2019-12-15 18:55:10 +02:00
Son NK 01e19485eb apart from localhost, allow only https 2019-12-15 18:55:10 +02:00
Son NK d600bbfec0 add step when developer adds new app 2019-12-15 18:55:10 +02:00
Son NK 5244678a16 add "disabled" to client-id, client-secret 2019-12-15 18:55:10 +02:00
Son NK fc73267b53 remove website url and icon when creating new app 2019-12-15 18:55:10 +02:00
Son NK daf22b823d add separator to authorize page 2019-12-15 18:55:10 +02:00
Son NK 4ca3ce571a improve wording 2019-12-15 18:55:10 +02:00
Son NK d933fcf0b7 replace information by info 2019-12-15 18:55:10 +02:00
Son NK 67dbcb9723 user can choose their avatar to send 2019-12-15 18:55:10 +02:00
Son NK d61c402aea user can choose name 2019-12-15 18:55:10 +02:00
Son NK 0e0a11dfce make sure custom alias must have at least 3 character in authorize 2019-12-15 18:55:10 +02:00
Son NK 2a6021c230 custom email must have .suffix 2019-12-15 18:55:10 +02:00
Son NK a1c65d3921 use EMAIL_DOMAIN instead of simplelogin.co 2019-12-15 18:55:10 +02:00
Son NK 8c38fe5b56 set custom=True when user creates a custom alias 2019-12-15 18:55:10 +02:00
Son NK ddf188f146 add ClientUser.name,default_avatar, GenEmail.custom column 2019-12-15 18:55:10 +02:00
Son NK 00f858c8c1 user can choose custom email in authorize 2019-12-15 18:55:10 +02:00
Son NK 08b394ea0f add User.suggested_emails 2019-12-15 18:55:10 +02:00
Son NK d05749d577 add default-avatar and use it instead of gravatar 2019-12-15 18:55:10 +02:00
Son NK 2461ea6145 refactor config 2019-12-15 18:55:10 +02:00
Son NK 37f75954be shorten wording 2019-12-15 18:55:09 +02:00
Son NK 6bf8cddbcd only SERVER_NAME in test 2019-12-15 18:55:09 +02:00
Son NK 32d6af228b set SERVER_NAME required by tests 2019-12-15 18:55:09 +02:00
Son NK 70e4f8b6e6 use os.environ[] instead of os.environ.get to fail fast 2019-12-15 18:55:09 +02:00
Son NK 8e459892f7 add config.get_abs_path to handle relative path 2019-12-15 18:55:09 +02:00
Son NK 2fc3108141 fix test 2019-12-15 18:55:09 +02:00
Son NK 0817e45abe override User.create to set password, create GenEmail, set trial period 2019-12-15 18:55:09 +02:00
Son NK 631e251d8c handle the case user clicks on cancel 2019-12-15 18:55:09 +02:00
Son NK abda0091ce small improv 2019-12-15 18:55:09 +02:00
Son NK 54fc54c3ce improve wording 2019-12-15 18:55:09 +02:00
Son NK 91bf3e3379 do not display avatar_url to user 2019-12-15 18:55:09 +02:00
Son NK 65a540030f improve authorize page 2019-12-15 18:55:09 +02:00
Son NK ca2605999c display avatar instead of avatar_url 2019-12-15 18:55:09 +02:00
Son NK 886108c3a0 enable facebook login 2019-12-15 18:55:09 +02:00
Son NK f4afbfe40f add new param FACEBOOK_CLIENT_ID, FACEBOOK_CLIENT_SECRET 2019-12-15 18:55:09 +02:00
Son NK bdc22f3c68 fix user getting redirected at each google login 2019-12-15 18:55:09 +02:00
Son NK 7ea4c157a1 workaround as Google does not allow to append param to redirect_url 2019-12-15 18:55:09 +02:00
Son NK caf610446c handle next with google login 2019-12-15 18:55:09 +02:00
Son NK cc6ce6618d refactor: rename 2019-12-15 18:55:09 +02:00
Son NK aab2244881 handle "next" for "sign up with github" too 2019-12-15 18:55:09 +02:00
Son NK f21f16e3f2 redirect user to next after login with github/google 2019-12-15 18:55:09 +02:00
Son NK 4227c3036d fix reset password expired 2019-12-15 18:55:09 +02:00
Son NK 43536734a0 add login with google 2019-12-15 18:55:09 +02:00
Son NK 10b0538192 add new param GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET 2019-12-15 18:55:09 +02:00
Son NK 17a4679b90 fix activation code 2019-12-15 18:55:09 +02:00
Son NK 4cdb803157 fix redirect_uri 2019-12-15 18:55:09 +02:00
Son NK 6d8d61495e set explicitly the redirect_uri 2019-12-15 18:55:09 +02:00
Son NK aae76f21f6 add github login 2019-12-15 18:55:09 +02:00
Son NK 4883ace2ed only show "create custom alias" button to users who can 2019-12-15 18:55:09 +02:00
Son NK 94d92a0e87 add new param GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET 2019-12-15 18:55:09 +02:00
Son NK 309cb36864 use span instead of a for icon 2019-12-15 18:55:09 +02:00
Son NK c7df8e9158 fix introJs 2019-12-15 18:55:08 +02:00
Son NK 388f520e9a premium user can choose custom alias 2019-12-15 18:55:08 +02:00
Son NK 414ef2bb9b remove requireJS madness! 2019-12-15 18:55:08 +02:00
Son NK 0b85000a11 import render_field, render_field_errors in base.html 2019-12-15 18:55:08 +02:00
Son NK fc2fdea6e7 change wording 2019-12-15 18:55:08 +02:00
Son NK 4ef8290c73 login and register page: redirect user to dashboard if user is already authenticated 2019-12-15 18:55:08 +02:00
Son NK df3292df37 user can delete email alias 2019-12-15 18:55:08 +02:00
Son NK 62cbcb249b disable notie overlayClickDismiss in base.html 2019-12-15 18:55:08 +02:00
Son NK 84fc5afedb prettify client listing page 2019-12-15 18:55:08 +02:00
Son NK 1274dd589a add delete() to ModelMixin: do NOT use the session.delete(), somehow it does a "SET" before "DELETE" 2019-12-15 18:55:08 +02:00
Son NK a2225160d5 Fix wordings on Login page 2019-12-15 18:55:08 +02:00
Son NK 1670b37858 use shorter words when generating emails 2019-12-15 18:55:08 +02:00
Son NK 1703f4b5f6 add param WORDS_FILE_PATH, use random_words when generating email 2019-12-15 18:55:08 +02:00
Son NK 9f3cba61ca rename ScopeE to just Scope 2019-12-15 18:55:08 +02:00
Son NK b263886434 use port 7777 instead of 5000 2019-12-15 18:55:08 +02:00
Son NK aa99ccb094 remove table scope and client_scope 2019-12-15 18:55:08 +02:00
Son NK 2a59bf5e23 add AVATAR_URL scope, use ScopeE instead of Scope 2019-12-15 18:55:08 +02:00
Son NK 4ea6e676e4 fill up plain_text_content when sending emails 2019-12-15 18:55:08 +02:00
Son NK 8b3564c2f2 fix wording 2019-12-15 18:55:08 +02:00
Son NK e2106a128e improve wording 2019-12-15 18:55:08 +02:00
Son NK c18d9f5280 create BaseForm to enable CSRF
register page

redirect user to dashboard if they are logged in

enable csrf for login page

Set models more strict

bootstrap developer page

add helper method to ModelMixin, remove CRUDMixin

display list of clients on developer index, add copy client-secret to clipboard using clipboardjs

add toastr and use jquery non slim

display a toast when user copies the client-secret

create new client, generate client-id using unidecode

client detail page: can edit client

add delete client

implement /oauth/authorize and /oauth/allow-deny

implement /oauth/token

add /oauth/user_info endpoint

handle scopes: wip

take into account scope: display scope, return user data according to scope

create virtual-domain, gen email, client_user model WIP

create authorize_nonlogin_user page

user can choose to generate a new email

no need to interfere with root logger

log for before and after request

if user has already allowed a client: generate a auth-code and redirect user to client

get_user_info takes into account gen email

display list of clients that have user has authorised

use yk-client domain instead of localhost as cookie depends on the domain name

use wtforms instead of flask_wtf

Dockerfile

delete virtual domain

EMAIL_DOMAIN can come from env var

bind to host 0.0.0.0

fix signup error: use session as default csrf_context

rename yourkey to simplelogin

add python-dotenv, ipython, sqlalchemy_utils

create DB_URI, FLASK_SECRET. Load config from CONFIG file if exist

add shortcuts to logging

create shell

add psycopg2

do not add local data in Dockerfile

add drop_db into shell

add shell.prepare_db()

fix prepare_db

setup sentry

copy assets from tabler/dist

add icon downloaded from https://commons.wikimedia.org/wiki/File:Simpleicons_Interface_key-tool-1.svg

integrate tabler - login and register page

add favicon

template: default, header. Use gravatar for user avatar url

use default template for dashboard, developer page

use another icon

add clipboard and notie

prettify dashboard

add notie css

add fake gen email and client-user

prettify list client page, use notie for toast

add email, name scope to new client

display client scope in client list

prettify new-client, client-detail

add sentry-sdk and blinker

add arrow, add dt jinja filter, prettify logout, dashboard

comment "last used" in dashboard for now

prettify date display

add copy email to clipboard to dashboard

use "users" as table name for User as "user" is reserved key in postgres

call prepare_db() when creating new db

error page 400, 401, 403, 404

prettify authorize_login_user

create already_authorize.html for user who has already authorized a client

user can generate new email

display all other generated emails

add ENV variable, only reset DB when ENV=local

fix: not return other users gen emails

display nb users for each client

refactor shell: remove prepare_db()

add sendgrid

add /favicon.ico route

add new config: URL, SUPPORT_EMAIL, SENDGRID_API_KEY

user needs to activate their account before login

create copy button on dashboard

client can have multiple redirect uris, in client detail can add/remove redirect-uri,

use redirect_uri passed in /authorize

refactor: move get_user_info into ClientUser model

dashboard: display all apps, all generated emails

add "id" into user_info

add trigger email button

invalidate the session at each new version by changing the secret

centralize Client creation into Client.create_new

user can enable/disable email forwarding

setup auto dismiss alert: just add .alert-auto-dismiss

move name down in register form

add shell.add_real_data

move blueprint template to its own package

prettify authorize page for non-authenticated user

update readme, return error if not redirect_uri

add flask-wtf, use psycopg2-binary

use flask-wtf FlaskForm instead of Form

rename email -> email_utils

add AWS_REGION, BUCKET, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY to config

add s3 module

add File model, add Client.icon_id

handle client icon update

can create client with icon

display client icon in client list page

add Client.home_url

take into account Client.home_url

add boto3

register: ask name first

only show "trigger test email" if email forwarding is enabled

display gen email in alphabetical order, client in client.name alphabetical order

better error page

the modal does not get close when user clicks outside of modal

add Client.published column

discover page that displays all published Client

add missing bootstrap.bundle.min.js.map

developer can publish/unpublish their app in discover

use notie for display flash message

create hotmail account

fix missing jquery

add footer, add global jinja2 variable

strengthen model: use nullable=False whenever possible,

rename client_id to oauth_client_id, client_secret to oauth_client_secret

add flask-migrate

init migrate

1st migrate version

fix rename client_id -> oauth_client_id

prettify UI

use flask_migrate.upgrade() instead of db.create_all()

make sure requirejs.config is called for all page

enable sentry for js, use uppercase for global jinja2 variables

add flask-admin

add User.is_admin column

setup flask admin, only accessible to admin user

fix migration: add server_default

replace session[redirect_after_login] by "next" request args

add pyproject.toml: ignore migrations/ in black

add register waiting_activation_email page

better email wording

add pytest

add get_host_name_and_scheme and tests

example fail test

fix test

fix client-id display

add flask-cors

/user_info supports cors, add /me as /user_info synonym

return client in /me

support implicit flow

no need to use with "app.app_context()"

add watchtower to requirement

add param ENABLE_CLOUDWATCH, CLOUDWATCH_LOG_GROUP, CLOUDWATCH_LOG_STREAM

add cloudwatch logger if cloudwatch is enabled

add 500 error page

add help text for list of used client

display list of app/website that an email has been used

click on client name brings to client detail page

create style.css to add additional style, append its url with the current sha1 to avoid cache

POC on how to send email using postfix

add sqlalchemy-utils

use arrow instead of datetime

add new params STRIPE_API, STRIPE_YEARLY_SKU, STRIPE_MONTHLY_PLAN

show full error in local

add plan, plan_expiration to User, need to create enum directly in migration script, cf https://github.com/sqlalchemy/alembic/issues/67

reformat all html files: use space instead of tab

new user will have trial plan for 15 days

add new param MAX_NB_EMAIL_FREE_PLAN

only user with enough quota can create new email

if user cannot create new gen email, pick randomly one from existing gen emails. Use flush instead of commit

rename STRIPE_YEARLY_SKU -> STRIPE_YEARLY_PLAN

open client page in discover in a new tab

add stripe

not logging /static call: disable flask logging, replace by after_request

add param STRIPE_SECRET_KEY

add 3 columns stripe_customer_id, stripe_card_token, stripe_subscription_id

user can upgrade their pricing

add setting page as coming-soon

add GenEmail, ClientUser to admin

ignore /admin/static logging

add more fake data

add ondelete="cascade" whenever possible

rename plan_expiration -> trial_expiration

reset migration: delete old migrations, create new one

rename test_send_email -> poc_send_email to avoid the file being called by pytest

add new param LYRA_ANALYTICS_ID, add lyra analytics

add how to create new migration into readme

add drift to base.html

notify admin when new user signs up or pays subscription

log exception in case of 500

use sendgrid to notify admin

add alias /userinfo to user_info endpoint

add change_password to shell

add info on how payment is handled

invite user to retry if card not working

remove drift and add "contact us" link

move poc_send_email into poc/

support getting client-id, client-secret from form-data in addition to basic auth

client-id, client-secret is passed in form-data by passport-oauth2 for ex

add jwtRS256 private and public key

add jwk-jws-jwt poc

add new param OPENID_PRIVATE_KEY_PATH, OPENID_PRIVATE_KEY_PATH

add scope, redirect_url to AuthorizationCode and OauthToken

take into scope when creating oauth-token, authorization-code

add jwcrypto

add jose_utils: make_id_token and verify_id_token

add &scope to redirect uri

add "email_verified": True into user_info

fix user not activated

add /oauth2 as alias for /oauth

handle case where scope and state are empty

remove threaded=False

Use Email Alias as wording

remove help text

user can re-send activation email

add "expired" into ActivationCode

Handle the case activation code is expired

reformat: use form.validate_on_submit instead of request.method == post && form.validate

use error text instead of flash()

display client oauth-id and oauth-secret on client detail page

not display oauth-secret on client listing

fix expiration check

improve page title, footer

add /jwks and /.well-known/openid-configuration

init properly tests, fix blueprint conflict bug in flask-admin

create oauth_models module

rename Scope -> ScopeE to distinguish with Scope DB model

set app.url_map.strict_slashes = False

use ScopeE instead of SCOPE_NAME, ...

support access_token passed as args in /userinfo

merge /allow-deny into /authorize

improve wording

take into account the case response_type=code and openid is in scope

take into account response_type=id_token, id_token token, id_token code

make sure to use in-memory db in test

fix scope can be null

allow cross_origin for /.well-known/openid-configuration and /jwks

fix footer link

center authorize form

rename trial_expiration to plan_expiration

move stripe init to create_app()

use real email to be able to receive email notification

add user.profile_picture_id column

use user profile picture and fallback to gravatar

use nguyenkims+local@gm to distinguish with staging

handle plan cancel, reactivation, user profile update

fix can_create_new_email

create cron.py that set plan to free when expired

add crontab.yml

add yacron

use notify_admin instead of LOG.error

add ResetPasswordCode model

user can change password in setting

increase display time for notie

add forgot_password page

If login error: redirect to this page upon success login.

hide discover tab

add column user.is_developer

only show developer menu to developer

comment out the publish button

set local user to developer

make sure only developer can access /developer blueprint

User is invited to upgrade if they are in free plan or their trial ends soon

not sending email when in local mode

create Partner model

create become partner page

use normal error handling on local

fix migration

add "import sqlalchemy_utils" into migration template

small refactoring on setting page

handle promo code. TODO: add migration file

add migration for user.promo_codes

move email alias on top of apps in dashboard

add introjs

move encode_url to utils

create GenEmail.create_new_gen_email

create a first alias mail to show user how to use when they login

show intro when user visits the website the first time

fix register
2019-07-02 10:20:12 +03:00
Son NK 0b3dd21a06 bootstrap: db models, login, logout, dashboard pages 2019-07-01 18:18:12 +03:00