mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 17:08:30 +01:00
c18d9f5280
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
1 line
No EOL
5.9 KiB
XML
Executable file
1 line
No EOL
5.9 KiB
XML
Executable file
<svg width="101" height="61" viewBox="0 0 101 61" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>Paypal-light</title><desc>Created with Sketch.</desc><g id="Light-Payment-badges" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(-770.000000, -488.000000)"><g id="Paypal-light" transform="translate(820.500000, 518.500000) scale(1, -1) translate(-820.500000, -518.500000) translate(770.000000, 488.000000)"><rect id="Rectangle" fill="#FFF" x=".188" y=".153" width="100" height="60" rx="4"/><path d="M61.5312621,33.7503762 C61.2626136,31.9864197 59.9155692,31.9864197 58.6122436,31.9864197 L57.8709257,31.9864197 L58.3911154,35.2798988 C58.4221621,35.4788508 58.5938691,35.6252136 58.7953555,35.6252136 L59.1356014,35.6252136 C60.0226485,35.6252136 60.8602744,35.6252136 61.292393,35.1202304 C61.5509039,34.8180007 61.6288373,34.3694084 61.5312621,33.7503762 M60.9641856,38.3528834 L56.0499447,38.3528834 C55.7135004,38.3528834 55.4277446,38.1083118 55.3751553,37.7763028 L53.3881699,25.1751653 C53.3488863,24.9267921 53.5415023,24.7018623 53.7924099,24.7018623 L56.314158,24.7018623 C56.5492255,24.7018623 56.7494447,24.8729356 56.7861938,25.1048351 L57.3501023,28.6777341 C57.4020579,29.0097431 57.6884474,29.2543147 58.0242581,29.2543147 L59.5791249,29.2543147 C62.8162132,29.2543147 64.6847146,30.8205864 65.1725905,33.9258848 C65.3924514,35.2830669 65.1814609,36.3500578 64.545955,37.0970782 C63.8470887,37.9182303 62.6083908,38.3528834 60.9641856,38.3528834" id="Shape" fill="#0079C1"/><path d="M26.4804201,33.7503762 C26.2117715,31.9864197 24.8647271,31.9864197 23.5614015,31.9864197 L22.8200836,31.9864197 L23.3402734,35.2798988 C23.37132,35.4788508 23.543027,35.6252136 23.7445134,35.6252136 L24.0847593,35.6252136 C24.9718064,35.6252136 25.8094323,35.6252136 26.241551,35.1202304 C26.5000618,34.8180007 26.5779952,34.3694084 26.4804201,33.7503762 M25.9133435,38.3528834 L20.9991027,38.3528834 C20.6626584,38.3528834 20.3769025,38.1083118 20.3243133,37.7763028 L18.3373278,25.1751653 C18.2980443,24.9267921 18.4900266,24.7018623 18.7415678,24.7018623 L21.088441,24.7018623 C21.4242516,24.7018623 21.7100075,24.9464338 21.7625968,25.2778093 L22.2992602,28.6777341 C22.3512159,29.0097431 22.6376053,29.2543147 22.973416,29.2543147 L24.5282829,29.2543147 C27.7653711,29.2543147 29.6338725,30.8205864 30.1217484,33.9258848 C30.3416093,35.2830669 30.1306188,36.3500578 29.495113,37.0970782 C28.7962466,37.9182303 27.5575487,38.3528834 25.9133435,38.3528834" id="Shape" fill="#00457C"/><path d="M37.3222264,29.2265628 C37.0947622,27.8820528 36.0277713,26.9791656 34.666154,26.9791656 C33.9837613,26.9791656 33.4369601,27.1990266 33.0859429,27.6146715 C32.7380938,28.0265148 32.6069375,28.6138667 32.7171848,29.2671135 C32.9288089,30.6002185 34.0135408,31.531618 35.3542491,31.531618 C36.0227024,31.531618 36.5650684,31.3098562 36.9230552,30.8904097 C37.2835765,30.4677951 37.425504,29.8772752 37.3222264,29.2265628 M40.6017662,33.8068938 L38.248557,33.8068938 C38.0470706,33.8068938 37.8753636,33.660531 37.8436834,33.4609454 L37.7404057,32.8032634 L37.576302,33.0414989 C37.06625,33.780916 35.9301961,34.0286555 34.796043,34.0286555 C32.1963614,34.0286555 29.9755757,32.0581438 29.543457,29.2949921 C29.3185272,27.9162675 29.6378642,26.5990026 30.4197328,25.6796416 C31.1376074,24.8350461 32.1621468,24.4833953 33.3831037,24.4833953 C35.4790693,24.4833953 36.641101,25.8291724 36.641101,25.8291724 L36.5359225,25.175292 C36.496639,24.9269188 36.6886213,24.701989 36.9407962,24.701989 L39.0595715,24.701989 C39.3960158,24.701989 39.6817717,24.945927 39.7343609,25.277936 L41.0066399,33.3335908 C41.0459234,33.581964 40.8533074,33.8068938 40.6017662,33.8068938" id="Shape" fill="#00457C"/><path d="M72.3731318,29.2265628 C72.1456676,27.8820528 71.0786767,26.9791656 69.7170594,26.9791656 C69.0346668,26.9791656 68.4878656,27.1990266 68.1368484,27.6146715 C67.7883656,28.0265148 67.657843,28.6138667 67.7680902,29.2671135 C67.9797143,30.6002185 69.0644462,31.531618 70.4051545,31.531618 C71.0736079,31.531618 71.6159738,31.3098562 71.9739607,30.8904097 C72.3344819,30.4677951 72.4764095,29.8772752 72.3731318,29.2265628 M75.6526717,33.8068938 L73.2994624,33.8068938 C73.097976,33.8068938 72.9262691,33.660531 72.8945888,33.4609454 L72.7913112,32.8032634 L72.6265739,33.0414989 C72.1171554,33.780916 70.9811015,34.0286555 69.8469485,34.0286555 C67.2472669,34.0286555 65.0264811,32.0581438 64.5943625,29.2949921 C64.3694327,27.9162675 64.6887696,26.5990026 65.4706383,25.6796416 C66.1885128,24.8350461 67.2130522,24.4833953 68.4340092,24.4833953 C70.5299747,24.4833953 71.6920064,25.8291724 71.6920064,25.8291724 L71.586828,25.175292 C71.5475444,24.9269188 71.7395268,24.701989 71.9917016,24.701989 L74.1104769,24.701989 C74.4469212,24.701989 74.7326771,24.945927 74.7852663,25.277936 L76.0575453,33.3335908 C76.0968288,33.581964 75.9042129,33.8068938 75.6526717,33.8068938" id="Shape" fill="#0079C1"/><path d="M53.1349179,33.8068304 L50.7696702,33.8068304 C50.5434732,33.8068304 50.3318491,33.6946823 50.2051281,33.5071352 L46.942062,28.7018744 L45.5595358,33.3195881 C45.4727319,33.608512 45.2066177,33.8068304 44.9050217,33.8068304 L42.5803248,33.8068304 C42.2996377,33.8068304 42.1019529,33.5305786 42.1925585,33.2650981 L44.7966753,25.6200194 L42.3471581,22.1637038 C42.1551758,21.8925208 42.3490589,21.5174266 42.6817016,21.5174266 L45.0444148,21.5174266 C45.2680774,21.5174266 45.4778007,21.6270403 45.6057889,21.8107857 L53.4713622,33.1637213 C53.6595429,33.4355378 53.4656598,33.8068304 53.1349179,33.8068304" id="Shape" fill="#00457C"/><path d="M78.4262145,38.0066182 L76.4094495,25.1748485 C76.370166,24.9264753 76.5621484,24.7015455 76.8136896,24.7015455 L78.842493,24.7015455 C79.1783037,24.7015455 79.4646932,24.946117 79.5166488,25.2781261 L81.5055351,37.8792636 C81.5448186,38.1276368 81.3528363,38.3525666 81.1006614,38.3525666 L78.8310881,38.3525666 C78.6289681,38.3525666 78.4572611,38.2062038 78.4262145,38.0066182" id="Shape" fill="#0079C1"/></g></g></svg> |