app-MAIL-temp/static/assets/images/payments/payza.svg
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

1 line
6.3 KiB
XML
Executable File

<svg width="100" height="60" viewBox="0 0 100 60" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>Payza-light</title><desc>Created with Sketch.</desc><defs><rect id="path-1" x="0" y="0" width="100" height="60" rx="4"/></defs><g id="Light-Payment-badges" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(-770.000000, -1189.000000)"><g id="Payza-light" transform="translate(770.000000, 1189.000000)"><g id="Rectangle"><use fill="#FFF" fill-rule="evenodd" xlink:href="#path-1"/><rect stroke="#FFF" stroke-width="1" x=".5" y=".5" width="99" height="59" rx="4"/></g><path d="M22.0730653,23.5189744 C21.0327338,23.7138462 20.0581481,24.4330769 19.7719603,25.4766667 C19.5373378,26.3676923 19.5889032,27.3548718 19.9550174,28.2023077 C20.3520708,29.0907692 21.3472826,29.5048718 22.2690137,29.5869231 C23.8984796,29.7433333 25.6362329,29.4510256 26.998848,28.5074359 C27.7581481,27.9830769 28.3756435,27.0920513 28.2196583,26.1330769 C28.0701187,25.0664103 27.1548332,24.2946154 26.2008737,23.9061538 C24.9027154,23.384359 23.4447043,23.2753846 22.0730653,23.5189744 L22.0730653,23.5189744 Z M19.5515183,20.7253846 C21.7791426,19.9061538 24.2749069,19.8138462 26.5631205,20.4433333 C28.3459935,20.9523077 30.0515183,21.9651282 31.1008737,23.5189744 C31.9233415,24.7189744 32.2224207,26.2753846 31.8137651,27.6779487 C31.3857725,29.2176923 30.2294189,30.4638462 28.8822734,31.2830769 C26.5824575,32.6715385 23.7270248,33.0035897 21.1229732,32.4202564 C20.9218682,32.3830769 20.7194741,32.3535897 20.5157909,32.334359 C20.4539124,33.5471795 21.1100818,34.7408974 22.1465459,35.3728205 C22.6377062,35.7215385 23.2603581,35.7958974 23.7592531,36.129359 C23.2075036,36.285641 22.6325496,36.1894872 22.0782218,36.1048718 C20.1483876,35.7625641 18.4145017,34.6178205 17.2220524,33.0869231 C15.424999,30.8125641 14.7688295,27.7215385 15.3979272,24.9061538 C15.9651463,22.9266667 17.6474667,21.4241026 19.5515183,20.7253846 L19.5515183,20.7253846 Z" id="Fill-1" fill="#419945"/><path d="M41.5518866,25.5869231 C41.5518866,26.9484615 41.5493084,28.3112821 41.5544649,29.6741026 C42.1152384,29.7074359 42.7430469,29.7458974 43.2174483,29.3894872 C43.75115,28.9984615 43.8813526,28.2920513 43.8916656,27.6741026 C43.8981113,27.0369231 43.8310763,26.3023077 43.3154225,25.8561538 C42.8242623,25.4548718 42.1423102,25.4869231 41.5518866,25.5869231 L41.5518866,25.5869231 Z M38.0235257,24.235641 C39.5640413,23.6241026 41.24894,23.4330769 42.897743,23.5292308 C43.9110027,23.6035897 44.9474667,23.8420513 45.7892715,24.4317949 C47.8634888,25.8510256 47.8428627,29.3741026 45.7699345,30.785641 C44.5491242,31.6241026 42.9970063,31.7933333 41.5505975,31.7062821 C41.5531758,33.1779487 41.5505975,34.6498718 41.5518866,36.1215385 L38.0222365,36.1215385 C38.0222365,32.1587179 38.0222365,28.1971795 38.0235257,24.235641 L38.0235257,24.235641 Z" id="Fill-3" fill="#2D2E2C"/><path d="M57.5616472,26.41 C58.8095294,26.4087179 60.0574115,26.4087179 61.3052936,26.41 C61.7100818,28.6984615 62.3017946,30.9588462 62.5480192,33.2728205 C62.6563065,32.1126923 62.9721445,30.9894872 63.2261039,29.8561538 C63.4942439,28.7074359 63.7585165,27.5574359 64.0253673,26.4087179 C65.1456251,26.41 66.265883,26.4074359 67.3861408,26.41 C65.8701187,30.9407692 64.3437835,35.4676923 62.8264723,39.9984615 C61.6198424,40.0010256 60.4132126,39.9997436 59.2078719,39.9984615 C59.7531758,38.7048718 60.2971905,37.4114103 60.8463618,36.1191026 C59.7570432,32.8805128 58.6548332,29.6471795 57.5616472,26.41" id="Fill-4" fill="#2D2E2C"/><path d="M68.2202108,26.4087179 C70.5226049,26.4125641 72.8237098,26.4010256 75.1261039,26.4151282 C74.2211316,28.7587179 73.3419419,31.1112821 72.4459935,33.4588462 C72.384115,33.6074359 72.3286822,33.7587179 72.2745386,33.9112821 C73.2336546,33.9061538 74.1914815,33.91 75.1505975,33.9087179 C75.1505975,34.6458974 75.1493084,35.3830769 75.1505975,36.1215385 L67.905662,36.1215385 C68.8866933,33.6215385 69.8651463,31.1215385 70.8448885,28.6215385 C69.9695662,28.6202564 69.095533,28.6215385 68.2214999,28.6215385 C68.2202108,27.884359 68.2202108,27.1458974 68.2202108,26.4087179" id="Fill-6" fill="#2D2E2C"/><path d="M51.4163434,32.3010256 C51.1701187,32.8689744 51.1842992,33.6394872 51.6561224,34.0907692 C52.1614631,34.5176923 52.8820892,34.4702564 53.4918498,34.3420513 C53.4931389,33.3317949 53.4918498,32.3202564 53.4918498,31.3087179 C52.736417,31.4189744 51.8121076,31.5574359 51.4163434,32.3010256 L51.4163434,32.3010256 Z M48.5944281,26.9497436 C50.1839308,26.3676923 51.9049253,26.0420513 53.598848,26.2484615 C54.538627,26.3625641 55.5093452,26.7382051 56.0804318,27.5241026 C56.6038203,28.2292308 56.7494925,29.1305128 56.7482034,29.9882051 C56.7469143,31.8625641 56.7482034,33.7382051 56.7469143,35.6125641 C55.4010579,36.2061538 53.9069511,36.3434615 52.4515183,36.3394872 C51.3222365,36.3125641 50.1246307,36.185641 49.1668038,35.5369231 C47.6842992,34.5433333 47.6224207,32.0446154 49.0907448,31.0074359 C50.3656988,30.0958974 51.9874299,29.9164103 53.5047411,29.7484615 C53.5524391,29.2279487 53.4106343,28.5869231 52.8202108,28.4510256 C51.643231,28.1638462 50.415975,28.5241026 49.3189216,28.9548718 C49.0791426,28.285641 48.823894,27.6228205 48.5944281,26.9497436 L48.5944281,26.9497436 Z" id="Fill-7" fill="#2D2E2C"/><path d="M79.7347596,32.1279487 C79.3673563,32.684359 79.3634888,33.5189744 79.8108185,34.034359 C80.3071353,34.5202564 81.0728811,34.4741026 81.704557,34.3446154 C81.7110027,33.3317949 81.7097135,32.3202564 81.704557,31.3074359 C81.0058461,31.4178205 80.1911132,31.5228205 79.7347596,32.1279487 L79.7347596,32.1279487 Z M76.804557,26.9523077 C78.4030837,26.3625641 80.1382586,26.0394872 81.8412052,26.2523077 C82.778406,26.3689744 83.7439677,26.7535897 84.3073194,27.5407692 C84.8203949,28.2433333 84.9583323,29.135641 84.9634888,29.984359 C84.964778,31.86 84.9634888,33.735641 84.9634888,35.6114103 C83.5815367,36.2189744 82.0448885,36.3537179 80.5494925,36.3369231 C79.4653305,36.3023077 78.31929,36.1665385 77.3975588,35.5497436 C75.8892715,34.5574359 75.8312605,32.0202564 77.3292347,30.9894872 C78.6028995,30.0946154 80.2117393,29.9112821 81.7226049,29.7497436 C81.7612789,29.2394872 81.6323655,28.5997436 81.052255,28.4574359 C79.8701187,28.1561538 78.6351279,28.5253846 77.5316288,28.9548718 C77.2905607,28.2869231 77.0391795,27.6228205 76.804557,26.9523077 L76.804557,26.9523077 Z" id="Fill-8" fill="#2D2E2C"/></g></g></svg>